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 => {