Fixed issue with fund investor currency not changing according to preferred currency
This commit is contained in:
sairaj mote 2021-05-14 16:41:18 +05:30
parent 4911089a6f
commit aa66524290

View File

@ -8361,9 +8361,11 @@ Bitcoin.Util = {
}
connectedCallback(){
document.getElementById('currency_selector').addEventListener('change', this.toggleCurrency)
}
disconnectedCallback(){
document.getElementById('currency_selector').removeEventListener('change', this.toggleCurrency)
}
})
@ -10559,7 +10561,6 @@ Bitcoin.Util = {
getRef('currency_selector').addEventListener('change', e => {
preferredCurrency = e.detail.value
localStorage.setItem('preferred-currency', e.detail.value)
document.querySelectorAll('fund-investor').forEach(investor => investor.toggleCurrency())
document.querySelectorAll('fund-block').forEach(fund => fund.toggleCurrency())
})