From 25b113175b2a654238372cc884e82482193d38fe Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sat, 15 Jul 2023 14:32:54 +0530 Subject: [PATCH] Bug fixes --- docs/index.html | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index c271725..cdc87d4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -167,7 +167,7 @@

FLO

- 0 + 0 @@ -327,7 +327,18 @@
ASSETS
PRICE
- +
@@ -2022,7 +2033,9 @@ return new Promise((resolve, reject) => { floTradeAPI.getTradeList().then(tradeList => { floGlobals.lastTradePrice = tradeList[0].unitValue || 0; - getRef('flo_exchange_rate').textContent = `${floGlobals.lastTradePrice} ${floGlobals.currency}` + document.querySelectorAll('.flo-exchange-rate').forEach(element => { + element.textContent = `${floGlobals.lastTradePrice} ${floGlobals.currency}` + }) resolve(floGlobals.lastTradePrice) }).catch(reject) }) @@ -2715,6 +2728,7 @@ floGlobals.exchangeApiLoaded = true console.log(nodes); refresh(true); + getLastTradePrice() }).catch(error => console.error(error)) }) function signInWithCredentials() {