fix: deleting the wallet did not update lastActiveWallet (#3628)

This commit is contained in:
dni ⚡
2025-12-06 14:46:17 +01:00
committed by GitHub
parent 89d673448a
commit 71e0b396d2
4 changed files with 9 additions and 8 deletions
+1 -5
View File
@@ -151,11 +151,7 @@ window._lnbitsApi = {
)
},
deleteWallet(wallet) {
return this.request('delete', `/api/v1/wallet/${wallet.id}`).then(_ => {
let url = new URL(window.location.href)
url.searchParams.delete('wal')
window.location = url
})
return this.request('delete', `/api/v1/wallet/${wallet.id}`)
},
getPayments(wallet, params) {
return this.request(