Fixed small issue when not using $state on variables
This commit is contained in:
parent
d43404a80a
commit
f8a80d7b71
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user