From def0fabf9864440a8252d7fa88c92198baaf1012 Mon Sep 17 00:00:00 2001 From: Nico <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Tue, 30 Jan 2024 19:32:54 +0100 Subject: [PATCH] fix: expired quest error (#493) --- app/quest/[questPage]/quest.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/quest/[questPage]/quest.tsx b/app/quest/[questPage]/quest.tsx index a8b92d6d..ddc753db 100644 --- a/app/quest/[questPage]/quest.tsx +++ b/app/quest/[questPage]/quest.tsx @@ -88,6 +88,12 @@ const Quest: FunctionComponent = ({ buttonText="Go back to quests" onClick={() => router.push("/")} /> + ) : quest.expired ? ( + router.push("/")} + /> ) : ( <>