Fix error 500

This commit is contained in:
AlphaX-Projects
2023-12-08 09:20:49 +01:00
committed by GitHub
parent 20d5f7be23
commit 54addff704

View File

@@ -4930,18 +4930,20 @@ class MultiWallet extends LitElement {
method: 'POST', method: 'POST',
body: `${window.parent.reduxStore.getState().app.selectedAddress[arrrWalletName].seed58}`, body: `${window.parent.reduxStore.getState().app.selectedAddress[arrrWalletName].seed58}`,
}) })
if (coin != this._selectedWallet) { if (coin != this._selectedWallet) {
// We've switched away from this coin // 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 if (res.indexOf('<') > -1) {
await new Promise(resolve => setTimeout(resolve, 2000)); 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() this.showWallet()
// No need to make balance or transaction list calls yet
return return
} }