diff options
| author | Adam Soltys <[email protected]> | 2024-12-30 18:29:01 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-12-30 19:45:00 -0800 |
| commit | 6c9ee9552288b2708caf2e093bc41b7fcee388ec (patch) | |
| tree | 9a3fd2195b6ffe6eb1d0e6444abf6b94841e8f72 /src/components | |
| parent | 6ab8cfb14f25d5b64f5155fea9ee291ee0bfd1ea (diff) | |
| download | coinos-ui-6c9ee9552288b2708caf2e093bc41b7fcee388ec.tar.gz coinos-ui-6c9ee9552288b2708caf2e093bc41b7fcee388ec.zip | |
msats math
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Lnurlw.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
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); }; </script> @@ -87,7 +87,8 @@ class="btn !w-auto grow" onclick={setMax} disabled={submitting} - onkeydown={setMax}>Max ⚡️{s(maxWithdrawable)}</button + onkeydown={setMax} + >Max ⚡️{s(Math.floor(maxWithdrawable / 1000))}</button > {/if} |
