[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}
|
||||
})
|
||||
} 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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
handler() {
|
||||
try {
|
||||
this.createdTasks()
|
||||
} catch (error) {
|
||||
console.warn(`Chart creation failed: ${error}`)
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue