Skip to content

Commit

Permalink
wip: fixed logic for yes and no button pressed states
Browse files Browse the repository at this point in the history
  • Loading branch information
mewdev committed Jan 16, 2025
1 parent dcf4e18 commit a41e708
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/app/abc/otazka/[questionNumber]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ export default function Page() {
toggleImportant={() => toggleImportant(currentQuestion)}
yesClick={() => answerYes(currentQuestion)}
noClick={() => answerNo(currentQuestion)}
yesPressed={question.answerType ? true : undefined}
noPressed={!question.answerType ? true : undefined}
yesPressed={question.answerType === true ? true : undefined}
noPressed={question.answerType === false ? true : undefined}
starPressed={question.isImportant ? true : undefined}
/>
);
Expand Down

0 comments on commit a41e708

Please sign in to comment.