aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Lnurlw.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 17:09:39 -0800
committerAdam Soltys <[email protected]>2026-02-11 17:09:39 -0800
commit3aa9ce1b5985397d7f568887ec6f881df13c1034 (patch)
tree2c459692dc5315e92924de6be9f0999a835e0f54 /src/components/Lnurlw.svelte
parent8a4b0087cbfe8b43d9b43d19af6d991a646ef3d7 (diff)
downloadcoinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.tar.gz
coinos-ui-3aa9ce1b5985397d7f568887ec6f881df13c1034.zip
fix ts errors
Diffstat (limited to 'src/components/Lnurlw.svelte')
-rw-r--r--src/components/Lnurlw.svelte7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte
index 784e8468..ac79b101 100644
--- a/src/components/Lnurlw.svelte
+++ b/src/components/Lnurlw.svelte
@@ -1,7 +1,7 @@
<script lang="ts">
import { tick } from "svelte";
import handler from "$lib/handler";
- import { sats, f, s } from "$lib/utils";
+ import { sats, f, s, focus } from "$lib/utils";
import { t } from "$lib/translations";
import { enhance } from "$app/forms";
import Numpad from "$comp/Numpad.svelte";
@@ -23,8 +23,8 @@
let amount = $state(Math.round(minWithdrawable / 1000));
let amountFiat = $derived(parseFloat(((amount * rate) / sats).toFixed(2)));
- let submit = $state();
- let submitting = $state();
+ let submit: HTMLButtonElement | undefined = $state();
+ let submitting: boolean = $state(false);
let toggle = () => (submitting = !submitting);
let setMax = async (e) => {
@@ -70,7 +70,6 @@
use:enhance={handler(toggle)}
action="?/withdraw"
method="POST"
- onsubmit={submit}
class="space-y-5"
>
<input name="amount" value={amount} type="hidden" />