Fixed small issue when not using $state on variables

This commit is contained in:
qowevisa 2024-11-10 08:37:37 +02:00
parent d43404a80a
commit f8a80d7b71

View File

@ -5,12 +5,12 @@
let cards: Card[] = $state([]);
let error: string | null = $state(null);
let editingCard: Card | null = $state(null);
let newCard: Partial<Card> = {
let newCard: Partial<Card> = $state({
balance: 0,
credit_line: 0,
have_credit_line: false,
name: "",
};
});
// Fetch all cards on page load
onMount(async () => {