aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Numpad.svelte
diff options
context:
space:
mode:
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}