Skip to content

Commit

Permalink
chore: disable route for solved
Browse files Browse the repository at this point in the history
  • Loading branch information
ThEditor committed Sep 17, 2024
1 parent ae1a4f1 commit 3438300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/challenges/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function ChallengesPage() {
points={challenge.points}
solved={solved.includes(challenge.id)}
// solves={challenge.solves}
onClick={() => setChallenge(challenge.id)}
onClick={solved.includes(challenge.id) ? undefined : () => setChallenge(challenge.id)}
/>
))}
</div>
Expand Down

0 comments on commit 3438300

Please sign in to comment.