From f2c0db7b696de5b934cef5854a9edb8bac6a3f70 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 7 Jan 2026 23:39:42 +0100 Subject: [PATCH] Simplify counts initialization in EntryPage --- client/src/pages/EntryPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/client/src/pages/EntryPage.tsx b/client/src/pages/EntryPage.tsx index ba2055b..edfdcfa 100644 --- a/client/src/pages/EntryPage.tsx +++ b/client/src/pages/EntryPage.tsx @@ -37,7 +37,6 @@ export default function EntryPage() { if (loading) return
Loading entry…
; if (error || !entry) return
{error || 'Entry not found.'}
; - const counts = entry.counts || { grammar: 0, vocab: 0, key_phrases: 0, conversation: 0, quiz: 0 }; const quizLink = `/quiz?mode=entry&id=${encodeURIComponent(entry.id)}`; const ig = entry.ig_meta; const profileUrl = ig?.profile_url || (ig?.username ? `https://www.instagram.com/${ig.username}/` : undefined);