[Fix] - Bug on switching wallets and payment details (#3094)

This commit is contained in:
Tiago Vasconcelos 2025-04-10 10:02:35 +01:00 committed by GitHub
parent f6c8a308dc
commit a0502f1676
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 7 deletions

File diff suppressed because one or more lines are too long

View file

@ -581,9 +581,10 @@ window.windowMixin = {
query: {wal: this.g.wallet.id} query: {wal: this.g.wallet.id}
}) })
} else { } else {
const url = new URL(window.location.href) this.$router.replace({
url.searchParams.set('wal', this.g.wallet.id) path: '/wallet',
window.history.replaceState({}, '', url.toString()) query: {wal: this.g.wallet.id}
})
} }
}, },
formatBalance(amount) { formatBalance(amount) {

View file

@ -1120,7 +1120,6 @@ window.WalletPageLogic = {
} }
}, },
'g.updatePayments'(newVal, oldVal) { 'g.updatePayments'(newVal, oldVal) {
console.log('updatePayments changed:', {newVal, oldVal})
this.parse.show = false this.parse.show = false
if (this.receive.paymentHash === this.g.updatePaymentsHash) { if (this.receive.paymentHash === this.g.updatePaymentsHash) {
this.receive.show = false this.receive.show = false
@ -1146,8 +1145,12 @@ window.WalletPageLogic = {
} }
}, },
'g.wallet': { 'g.wallet': {
handler(newWallet) { handler() {
this.createdTasks() try {
this.createdTasks()
} catch (error) {
console.warn(`Chart creation failed: ${error}`)
}
}, },
deep: true deep: true
} }