This commit is contained in:
sairaj mote 2023-09-24 03:06:21 +05:30
parent bbe7ae06e6
commit 94735e6049

View File

@ -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}`
})