aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-23 00:29:33 -0800
committerAdam Soltys <[email protected]>2023-02-23 00:29:33 -0800
commitc1c019beae03bbebde70557e1d0a9e064a48927c (patch)
tree141ea29828f1698c90a56a09162e723efc5ec762
parent6c97cdad982687fe336d63888bfa66997c9ac48d (diff)
downloadcoinos-ui-c1c019beae03bbebde70557e1d0a9e064a48927c.tar.gz
coinos-ui-c1c019beae03bbebde70557e1d0a9e064a48927c.zip
fix amount display bug
-rw-r--r--src/routes/(app)/send/user/[username]/[...amount]/+page.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
index 9704e3c6..f861c90d 100644
--- a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte
@@ -16,10 +16,11 @@
let amount = form?.amount || data.amount;
let a,
af,
- amountFiat = amount * ($selectedRate / sats),
fiat = !amount,
hash;
+ $: amountFiat = amount * ($selectedRate / sats);
+
let setAmount = async () => {
amount = a;
amountFiat = af;