From c0f1a0b3256fb482ca16525c4a5c8d062c1c8ea6 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 8 Jan 2026 03:06:40 +0100 Subject: [PATCH] Add back to summary button conditionally in EntryPage --- client/src/pages/EntryPage.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/pages/EntryPage.tsx b/client/src/pages/EntryPage.tsx index 07e6680..a5861d4 100644 --- a/client/src/pages/EntryPage.tsx +++ b/client/src/pages/EntryPage.tsx @@ -40,11 +40,15 @@ export default function EntryPage() { const quizLink = `/quiz?mode=entry&id=${encodeURIComponent(entry.id)}`; const ig = entry.ig_meta; + const fromSummary = Boolean(location.state && (location.state as any).fromSummary); return (
+ {fromSummary && ( + + )}