Skip to content

Commit

Permalink
fix: expired quest error (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas authored Jan 30, 2024
1 parent 0d97aa8 commit def0fab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/quest/[questPage]/quest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ const Quest: FunctionComponent<QuestPageProps> = ({
buttonText="Go back to quests"
onClick={() => router.push("/")}
/>
) : quest.expired ? (
<ErrorScreen
errorMessage="This quest has expired."
buttonText="Go back to quests"
onClick={() => router.push("/")}
/>
) : (
<>
<div className={homeStyles.screen}>
Expand Down

0 comments on commit def0fab

Please sign in to comment.