Skip to content

Commit

Permalink
Update static/js/banner.js
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Benker <[email protected]>
  • Loading branch information
recy21 and D13ce authored Dec 5, 2023
1 parent e7385c0 commit 547b61d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions static/js/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<span class='currency-symbol'>${price.symbol} </span><span class='k-formatted-price'>${price.truncPrice}</span><span class='price'>${addCommas(price.roundPrice)}</span>`
} catch (err) {
Expand Down

0 comments on commit 547b61d

Please sign in to comment.