From 547b61d5253f8a20fd201bfb92c4762d6d080f29 Mon Sep 17 00:00:00 2001
From: recy21 <98810395+recy21@users.noreply.github.com>
Date: Tue, 5 Dec 2023 15:58:13 +0100
Subject: [PATCH] Update static/js/banner.js
Co-authored-by: Stefan Benker <114066135+D13ce@users.noreply.github.com>
---
static/js/banner.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/static/js/banner.js b/static/js/banner.js
index dfe6015903..ba06b7ebb0 100644
--- a/static/js/banner.js
+++ b/static/js/banner.js
@@ -51,8 +51,7 @@ function updateBanner() {
if (ethPriceHandle) {
try {
let userCurrency = getCookie("currency")
- if (!userCurrency) userCurrency = data.rates.tickerCurrency
- else if (userCurrency == data.rates.mainCurrency) userCurrency = data.rates.tickerCurrency
+ if (!userCurrency || userCurrency == data.rates.mainCurrency) userCurrency = data.rates.tickerCurrency
var price = data.rates.mainCurrencyTickerPrices[userCurrency]
ethPriceHandle.innerHTML = `${price.symbol} ${price.truncPrice}${addCommas(price.roundPrice)}`
} catch (err) {