This commit is contained in:
2026-06-06 15:25:58 +01:00
parent 59e7dd9fdc
commit 75cca8b158
+6 -4
View File
@@ -352,7 +352,7 @@
buyNewCardCVC = ''; buyNewCardCVC = '';
await fetchGiftCardBalance(); await fetchGiftCardBalance();
if (buySelectedCard === '') { if (buySelectedCard === '') {
await fetchSavedCards(); await savedCardsStore.fetch();
} }
} else { } else {
const errText = await res.text(); const errText = await res.text();
@@ -575,7 +575,7 @@
newCardNumber = ''; newCardNumber = '';
newCardExpiry = ''; newCardExpiry = '';
newCardCVC = ''; newCardCVC = '';
fetchSavedCards(); savedCardsStore.invalidate();
} else { } else {
const errText = await res.text(); const errText = await res.text();
toast.error(errText || 'Failed to add card'); toast.error(errText || 'Failed to add card');
@@ -1216,7 +1216,8 @@
: 'text-gray-600 hover:text-gray-900'}" : 'text-gray-600 hover:text-gray-900'}"
onclick={(_) => { onclick={(_) => {
activeTab = 'cards'; activeTab = 'cards';
fetchSavedCards(); savedCardsStore.fetch();
savedCardsStore.invalidate();
fetchGiftCardBalance(); fetchGiftCardBalance();
}} }}
> >
@@ -2449,7 +2450,8 @@
: 'text-gray-600 hover:text-gray-900'}" : 'text-gray-600 hover:text-gray-900'}"
onclick={(_) => { onclick={(_) => {
activeTab = 'cards'; activeTab = 'cards';
fetchSavedCards(); savedCardsStore.fetch();
savedCardsStore.invalidate();
fetchGiftCardBalance(); fetchGiftCardBalance();
}} }}
> >