diff options
Diffstat (limited to 'src/routes/(app)/send/invoice')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 01b4facd..61c46b76 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -25,7 +25,7 @@ let tip = $derived(data.invoice.tip); let currency = $derived(user.currency); let locale = $derived(loc(user)); - let amount = $state(form?.amount ?? data.invoice.amount); + let amount = $state((() => form?.amount ?? data.invoice.amount)()); let rate = $derived(invoice.rate * (data.rate / data.invoiceRate)); @@ -40,7 +40,7 @@ amountFiat = af; if (trusted) { await tick(); - formEl?.querySelector('button[type="submit"]')?.click(); + (formEl?.querySelector('button[type="submit"]') as HTMLElement)?.click(); } }; |
