Skip to content

Commit

Permalink
fix: index 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Josanghyeon authored and Josanghyeon committed Dec 28, 2022
1 parent 9f7041b commit e614193
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/studyRoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export const StudyRoom = ({
{seatY.map((seat, x) => {
const isSelected =
isEdit &&
selectedPosition?.x === x + 1 &&
selectedPosition?.y === y + 1;
selectedPosition?.x - 1 === x &&
selectedPosition?.y - 1 === y;
return (
<div>
{!seat || seat.status === 'EMPTY' ? (
Expand Down

0 comments on commit e614193

Please sign in to comment.