diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 17:09:39 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 17:09:39 -0800 |
| commit | 3aa9ce1b5985397d7f568887ec6f881df13c1034 (patch) | |
| tree | 2c459692dc5315e92924de6be9f0999a835e0f54 /src/routes/(app)/send/invoice | |
| parent | 8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7 (diff) | |
| download | coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.tar.gz coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.zip | |
fix ts errors
Diffstat (limited to 'src/routes/(app)/send/invoice')
| -rw-r--r-- | src/routes/(app)/send/invoice/[id]/+page.svelte | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte index 2a2d72e2..f3f2f618 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.svelte +++ b/src/routes/(app)/send/invoice/[id]/+page.svelte @@ -23,7 +23,7 @@ focus, loc, } from "$lib/utils"; - let { data, form } = $props(); + let { data, form }: any = $props(); let { trusted, balance, invoice, user } = $state(data); let { address, hash, payreq, user: recipient, tip } = $state(data.invoice); @@ -33,8 +33,8 @@ let rate = $derived(invoice.rate * (data.rate / data.invoiceRate)); - let a = $state(), - af = $state(), + let a: any = $state(), + af: any = $state(), fiat = $state(untrack(() => !amount)); let amountFiat = $state((untrack(() => amount) * untrack(() => rate)) / sats); @@ -63,7 +63,7 @@ }); }; - let toggleTrust = async (e) => { + let toggleTrust = async (e: Event) => { e.preventDefault(); e.stopPropagation(); @@ -100,7 +100,7 @@ // } // }); - let setMax = (e) => { + let setMax = (e: Event) => { e.preventDefault(); fiat = false; amount = balance; @@ -126,7 +126,7 @@ </h1> <div class="flex p-1 gap-2 justify-center"> - <Avatar user={recipient} size={"20"} /> + <Avatar user={recipient} size={20} /> <p class="text-4xl break-words my-auto"> {recipient.username} </p> |
