From 54addff704ea1c5ea56fdeb5f0d3a755f811f306 Mon Sep 17 00:00:00 2001 From: AlphaX-Projects <77661270+AlphaX-Projects@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:20:49 +0100 Subject: [PATCH] Fix error 500 --- plugins/plugins/core/wallet/wallet-app.src.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/plugins/plugins/core/wallet/wallet-app.src.js b/plugins/plugins/core/wallet/wallet-app.src.js index 1378e9fa..710444a6 100644 --- a/plugins/plugins/core/wallet/wallet-app.src.js +++ b/plugins/plugins/core/wallet/wallet-app.src.js @@ -4930,18 +4930,20 @@ class MultiWallet extends LitElement { method: 'POST', body: `${window.parent.reduxStore.getState().app.selectedAddress[arrrWalletName].seed58}`, }) + if (coin != this._selectedWallet) { // We've switched away from this coin } - if (res !== null && res !== "Synchronized") { - // Not synchronized yet - display sync status instead of balance - this.balanceString = res; - // Check again shortly after - await new Promise(resolve => setTimeout(resolve, 2000)); + if (res.indexOf('<') > -1) { + this.balanceString = this.renderFetchText() + await new Promise(resolve => setTimeout(resolve, 2000)) + this.showWallet() + return + } else if (res !== null && res !== "Synchronized") { + this.balanceString = res + await new Promise(resolve => setTimeout(resolve, 2000)) this.showWallet() - - // No need to make balance or transaction list calls yet return }