[Fix] - Bug on switching wallets and payment details (#3094)
This commit is contained in:
parent
f6c8a308dc
commit
a0502f1676
3 changed files with 11 additions and 7 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue