From 75cca8b15842726a82db8fbe8250dea4ea853746 Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Sat, 6 Jun 2026 15:25:58 +0100 Subject: [PATCH] fixes --- frontend/src/routes/account/+page.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/routes/account/+page.svelte b/frontend/src/routes/account/+page.svelte index 4d454f1..da60216 100644 --- a/frontend/src/routes/account/+page.svelte +++ b/frontend/src/routes/account/+page.svelte @@ -352,7 +352,7 @@ buyNewCardCVC = ''; await fetchGiftCardBalance(); if (buySelectedCard === '') { - await fetchSavedCards(); + await savedCardsStore.fetch(); } } else { const errText = await res.text(); @@ -575,7 +575,7 @@ newCardNumber = ''; newCardExpiry = ''; newCardCVC = ''; - fetchSavedCards(); + savedCardsStore.invalidate(); } else { const errText = await res.text(); toast.error(errText || 'Failed to add card'); @@ -1216,7 +1216,8 @@ : 'text-gray-600 hover:text-gray-900'}" onclick={(_) => { activeTab = 'cards'; - fetchSavedCards(); + savedCardsStore.fetch(); + savedCardsStore.invalidate(); fetchGiftCardBalance(); }} > @@ -2449,7 +2450,8 @@ : 'text-gray-600 hover:text-gray-900'}" onclick={(_) => { activeTab = 'cards'; - fetchSavedCards(); + savedCardsStore.fetch(); + savedCardsStore.invalidate(); fetchGiftCardBalance(); }} >