From 94735e60498078430cd2740a28593fc3473900a2 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Sun, 24 Sep 2023 03:06:21 +0530 Subject: [PATCH] bug fix --- docs/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index bcde31a..befb2be 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2083,7 +2083,7 @@ function getLastTradePrice() { return new Promise((resolve, reject) => { floTradeAPI.getTradeList().then(tradeList => { - floGlobals.lastTradePrice = tradeList[0].unitValue || 0; + floGlobals.lastTradePrice = tradeList[0]?.unitValue || 0; document.querySelectorAll('.flo-exchange-rate').forEach(element => { element.textContent = `${floGlobals.lastTradePrice} ${floGlobals.currency}` })