From 1115b61e06403ea52b55539bb320d62c53ea061a Mon Sep 17 00:00:00 2001 From: qowevisa Date: Sun, 24 Nov 2024 00:30:07 +0200 Subject: [PATCH] Add missing default values for some fields on newTransfer default state --- src/routes/transfer/+page.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routes/transfer/+page.svelte b/src/routes/transfer/+page.svelte index 2ba343e..532f455 100644 --- a/src/routes/transfer/+page.svelte +++ b/src/routes/transfer/+page.svelte @@ -11,8 +11,12 @@ let error: string | null = $state(null); let editingTransfer: Transfer | null = $state(null); let newTransfer: Partial = $state({ + from_card_id: 0, + to_card_id: 0, card_id: 0, value: 0, + to_value: 0, + from_value: 0, date: "2006-01-02T15:04:05Z", });