Skip to content

Commit

Permalink
refactor: Room 컴포넌트의 key 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ovoxiix committed Feb 12, 2024
1 parent 3233228 commit e9d4a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Register/Steps/SecondStep/RoomList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const RoomList = ({ rooms }: RoomListProps) => {
<>
{rooms.length > 0 && (
<Container>
{rooms.map((room, index) => (
<Room key={index}>{sliceName(room.roomNumber)}</Room>
{rooms.map(room => (
<Room key={room.id}>{sliceName(room.roomNumber)}</Room>
))}
</Container>
)}
Expand Down

0 comments on commit e9d4a89

Please sign in to comment.