Skip to content

Commit

Permalink
fix: only show comments when not attempting quiz
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEscaleira committed Apr 15, 2024
1 parent 28c9ffb commit 366a847
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/pages/Quiz/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export function Component() {

const renderQuizOfDay =
quiz?.id === quizOfTheDayId ? (
<Tooltip content='This is the quiz of the day'>
<Calendar className="mr-2 stroke-blue-500 size-7" />
<Tooltip content="This is the quiz of the day">
<Calendar className="mr-2 size-7 stroke-blue-500" />
</Tooltip>
) : null;

Expand Down Expand Up @@ -131,9 +131,11 @@ export function Component() {
</div>
)}

<div className="container mt-6 flex w-full justify-center">
<QuizComments />
</div>
{!isAttemptRunning && (
<div className="container mt-6 flex w-full justify-center">
<QuizComments />
</div>
)}
</div>
);
}

0 comments on commit 366a847

Please sign in to comment.