From 01776fdc828e19b118b646de8ef0b1cae8d39ca3 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Mon, 25 Jul 2022 16:17:55 +0530 Subject: [PATCH] minor UX improvements --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 0e2bdf4..5473dea 100644 --- a/index.html +++ b/index.html @@ -170,7 +170,7 @@

Estimated time of confirmation is 1hr

+ error-text="Please enter valid fees" readonly animate required>
@@ -1145,7 +1145,8 @@ }) } getRef('currency_selector').addEventListener('change', async e => { - const exchangeRate = await getExchangeRate(); + if (!globalExchangeRate.hasOwnProperty(e.target.value)) + await getExchangeRate(); localStorage.setItem('btc-wallet-currency', e.target.value); document.querySelectorAll('.currency-symbol').forEach(el => el.innerHTML = currencyIcons[e.target.value]) document.querySelectorAll('.amount-shown').forEach(el => {