aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/send/user/[username]/[...amount]/+page.server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js
index 6fc74577..f6ffbcd5 100644
--- a/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js
+++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.server.js
@@ -7,7 +7,7 @@ export async function load({ cookies, params, parent }) {
let [amount, currency] = params.amount.split('/');
if (amount) {
- let rate = rates[currency.toUpperCase() || user.currency];
+ let rate = rates[currency ? currency.toUpperCase() : user.currency];
if (!rate) throw error(500, "Invalid currency symbol");
if (currency) amount = (amount * sats) / rate;