aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-27 16:14:25 -0800
committerAdam Soltys <[email protected]>2026-02-27 16:14:25 -0800
commit0a1981a48832e4cf8822a523474f67f9dfb2f27f (patch)
treef49f22ebb58d103c24c6627ae2382e8f3e401393 /src/components
parent16da2cb00d16f87d02535bfdae815f83f19f251f (diff)
downloadcoinos-ui-0a1981a48832e4cf8822a523474f67f9dfb2f27f.tar.gz
coinos-ui-0a1981a48832e4cf8822a523474f67f9dfb2f27f.zip
fix svelte-check issues
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Lnurlp.svelte2
-rw-r--r--src/components/Lnurlw.svelte2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Lnurlp.svelte b/src/components/Lnurlp.svelte
index 757a2540..e613b957 100644
--- a/src/components/Lnurlp.svelte
+++ b/src/components/Lnurlp.svelte
@@ -18,7 +18,7 @@
let metadata = $derived(data.metadata);
let rate = $derived(data.rate);
- let amount = $state(Math.round(minSendable / 1000)),
+ let amount = $state((() => Math.round(data.minSendable / 1000))()),
loading = $state();
let submit = () => (loading = true);
</script>
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte
index b952b082..c3c17925 100644
--- a/src/components/Lnurlw.svelte
+++ b/src/components/Lnurlw.svelte
@@ -20,7 +20,7 @@
let callback = $derived(data.callback);
let rate = $derived(data.rate);
- let amount = $state(Math.round(minWithdrawable / 1000));
+ let amount = $state((() => Math.round(data.minWithdrawable / 1000))());
let amountFiat = $derived(parseFloat(((amount * rate) / sats).toFixed(2)));
let submit: HTMLButtonElement | undefined = $state();