[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}
})
} else {
const url = new URL(window.location.href)
url.searchParams.set('wal', this.g.wallet.id)
window.history.replaceState({}, '', url.toString())
this.$router.replace({
path: '/wallet',
query: {wal: this.g.wallet.id}
})
}
},
formatBalance(amount) {

View file

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