From 6c9ee9552288b2708caf2e093bc41b7fcee388ec Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 30 Dec 2024 18:29:01 -0800 Subject: msats math --- src/components/Lnurlw.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/components') diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte index bf9fd593..5dc980c2 100644 --- a/src/components/Lnurlw.svelte +++ b/src/components/Lnurlw.svelte @@ -31,7 +31,7 @@ e.preventDefault(); $fiat = false; await tick(); - amount = maxWithdrawable; + amount = Math.floor(maxWithdrawable / 1000); }; @@ -87,7 +87,8 @@ class="btn !w-auto grow" onclick={setMax} disabled={submitting} - onkeydown={setMax}>Max ⚡️{s(maxWithdrawable)}Max ⚡️{s(Math.floor(maxWithdrawable / 1000))} {/if} -- cgit v1.2.3