Skip to content

Commit

Permalink
hotfix: idx -> position으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
chan-byeong committed Dec 5, 2024
1 parent 2c457a3 commit 4eb9597
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/pages/quiz-session/ui/QuizBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ export default function QuizBox({
.map((choice, idx) => (
<button
key={choice.id}
onClick={() => handleSelectAnswer(idx)}
onClick={() => handleSelectAnswer(choice.position)}
className={`w-full p-4 text-left rounded-xl border transition-all ${
selectedAnswer.includes(idx)
selectedAnswer.includes(choice.position)
? 'border-blue-500 bg-blue-50'
: 'border-gray-200 hover:border-blue-200'
}`}
Expand Down

0 comments on commit 4eb9597

Please sign in to comment.