Add missing default values for some fields on newTransfer default state

This commit is contained in:
qowevisa 2024-11-24 00:30:07 +02:00
parent bf7c2e0c0b
commit 1115b61e06

View File

@ -11,8 +11,12 @@
let error: string | null = $state(null);
let editingTransfer: Transfer | null = $state(null);
let newTransfer: Partial<Transfer> = $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",
});