diff options
Diffstat (limited to 'src/routes/(app)/send')
| -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 9cc2f0a6..0c67caa1 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -27,10 +27,10 @@ let { data, form } = $props(); let { trusted, balance, invoice, user } = $state(data); - let { address, hash, payreq, user: recipient, tip } = $state(invoice); + let { address, hash, payreq, user: recipient, tip } = $state(data.invoice); let { currency } = $derived(user); let locale = $derived(loc(user)); - let { amount } = $state(form || invoice); + let amount = $state(form?.amount ?? data.invoice.amount); let rate = $derived(invoice.rate * (data.rate / data.invoiceRate)); |
