From aa66524290ec92d83a9700b672c85e3e1cb1a411 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Fri, 14 May 2021 16:41:18 +0530 Subject: [PATCH] UI fix Fixed issue with fund investor currency not changing according to preferred currency --- index.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index f8c069f..17be635 100644 --- a/index.html +++ b/index.html @@ -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()) })