aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Numpad.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-30 16:41:12 -0800
committerAdam Soltys <[email protected]>2024-12-30 16:41:12 -0800
commitb83b9bf7cd49548c2cd2a15184254816ea8b4003 (patch)
tree696c3323b3b41c330cda152ce0f771ca6819762c /src/components/Numpad.svelte
parent0349e91841edbd17117e46ae6cf5b342ac3ebe96 (diff)
downloadcoinos-ui-b83b9bf7cd49548c2cd2a15184254816ea8b4003.tar.gz
coinos-ui-b83b9bf7cd49548c2cd2a15184254816ea8b4003.zip
fix setmax for take funds
Diffstat (limited to 'src/components/Numpad.svelte')
-rw-r--r--src/components/Numpad.svelte11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/components/Numpad.svelte b/src/components/Numpad.svelte
index f79f749a..e69caf87 100644
--- a/src/components/Numpad.svelte
+++ b/src/components/Numpad.svelte
@@ -53,6 +53,7 @@
let update = (a, f) => {
if ($fiat) {
amount = f ? Math.round(strip(f) / (rate / sats)) : 0;
+ console.log("settung amount", amount, f);
} else {
amountFiat = a ? ((a * rate) / sats).toFixed(2) : 0;
}
@@ -203,7 +204,10 @@
{symbol}
{/if}
{:else}
- <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"
+ <iconify-icon
+ noobserver
+ icon="ph:lightning-fill"
+ class="text-yellow-300"
></iconify-icon>
{/if}
</div>
@@ -228,7 +232,10 @@
on:click|preventDefault|stopPropagation={swap}
>
{#if $fiat}
- <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"
+ <iconify-icon
+ noobserver
+ icon="ph:lightning-fill"
+ class="text-yellow-300"
></iconify-icon>
{s(amount, locale)}
{:else}