diff --git a/src/routes/card/+page.svelte b/src/routes/card/+page.svelte index 3a71d39..759b79d 100644 --- a/src/routes/card/+page.svelte +++ b/src/routes/card/+page.svelte @@ -5,12 +5,12 @@ let cards: Card[] = $state([]); let error: string | null = $state(null); let editingCard: Card | null = $state(null); - let newCard: Partial = { + let newCard: Partial = $state({ balance: 0, credit_line: 0, have_credit_line: false, name: "", - }; + }); // Fetch all cards on page load onMount(async () => {