From 5168fc351776de8d563e9de248fe2ae012f96e58 Mon Sep 17 00:00:00 2001 From: sairaj mote Date: Tue, 31 May 2022 18:32:37 +0530 Subject: [PATCH] minor UI fix --- scripts/fn_ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/fn_ui.js b/scripts/fn_ui.js index 7fad239..86f5ccd 100644 --- a/scripts/fn_ui.js +++ b/scripts/fn_ui.js @@ -73,7 +73,9 @@ function depositMoneyToWallet() { console.error(error) getRef('topup_failed_reason').textContent = error; showChildElement('topup_wallet_process', 3); - }) + }).finally(() => { + buttonLoader('topup_wallet_button', false); + }); } function withdrawMoneyFromWallet() { @@ -632,7 +634,7 @@ const render = { let propToCheck = filter === 'sent' ? 'sender' : 'receiver'; paymentTransactions = paymentTransactions.filter(v => v[propToCheck] === myFloID) } - // solve issue at backend + // solve sorting issue at backend paymentTransactions.sort((a, b) => b.time - a.time); if (paymentsHistoryLoader) { paymentsHistoryLoader.update(paymentTransactions);