aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-10-10 20:29:50 -0700
committerAdam Soltys <[email protected]>2022-10-10 20:29:50 -0700
commitbb8f162c8b1956351d8c5f502bd7f914f07433a4 (patch)
treefbea7225bb1d71478678ee73ca0b384862dbfa74 /src
parent652d5d475b08aabded5d45ac9b187059b1f5ee93 (diff)
downloadcoinos-ui-bb8f162c8b1956351d8c5f502bd7f914f07433a4.tar.gz
coinos-ui-bb8f162c8b1956351d8c5f502bd7f914f07433a4.zip
use selected rate for account balance
Diffstat (limited to 'src')
-rw-r--r--src/routes/[username]/dashboard/+page.svelte4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte
index 7055e617..42048210 100644
--- a/src/routes/[username]/dashboard/+page.svelte
+++ b/src/routes/[username]/dashboard/+page.svelte
@@ -11,7 +11,7 @@
let ease = (t) => (t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t);
let interval;
- $: animateRate($rate);
+ $: animateRate($selectedRate);
let animateRate = (newRate) => {
if (!accountBalanceFiat) return;
let t = 0;
@@ -30,7 +30,7 @@
$: user = data.user;
$: accountBalanceFiat =
- accountBalanceFiat || (user && $rate && ((user.account.balance * $rate) / sats).toFixed(2));
+ accountBalanceFiat || (user && $selectedRate && ((user.account.balance * $selectedRate) / sats).toFixed(2));
let payreq = '',
payreqField,