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 = '';
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();
}}
>