From bbe5eb813f2b6291507e4925aacba55a55d1593a Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 28 Nov 2024 16:43:27 +0200 Subject: [PATCH] Delete unused getCardName function --- src/routes/expense/+page.svelte | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/routes/expense/+page.svelte b/src/routes/expense/+page.svelte index 4d8331b..0652eea 100644 --- a/src/routes/expense/+page.svelte +++ b/src/routes/expense/+page.svelte @@ -117,11 +117,6 @@ } // Helper function to get the name of the parent category - function getCardName(cardId: number) { - if (cardId === 0) return "None"; - const card = cards.find((card) => card.id === cardId); - return card ? card.name : "Unknown"; - } function getTypeColor(typeId: number) { if (typeId === 0) return "None"; const type = types.find((card) => card.id === typeId);