mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 22:58:46 +01:00
refactor: clean-up
This commit is contained in:
parent
c5755ac587
commit
afbdfeff8c
2 changed files with 1 additions and 9 deletions
|
@ -92,14 +92,6 @@ async function walletList(path) {
|
|||
})
|
||||
await this.refreshWalletAccounts()
|
||||
|
||||
if (
|
||||
this.payment.changeWallet &&
|
||||
this.payment.changeWallet.id === walletAccountId
|
||||
) {
|
||||
this.payment.changeWallet = this.walletAccounts[0]
|
||||
this.selectChangeAddress(this.payment.changeWallet)
|
||||
}
|
||||
await this.scanAddressWithAmount()
|
||||
} catch (error) {
|
||||
this.$q.notify({
|
||||
type: 'warning',
|
||||
|
@ -172,7 +164,6 @@ async function walletList(path) {
|
|||
const wallet = this.walletAccounts.find(w => w.id === walletId) || {}
|
||||
wallet.address_no = addressData.addressIndex
|
||||
this.$emit('new-receive-address', addressData)
|
||||
this.$emit('accounts-update', this.walletAccounts)
|
||||
}
|
||||
},
|
||||
created: async function () {
|
||||
|
|
|
@ -1053,6 +1053,7 @@ const watchOnly = async () => {
|
|||
updateAccounts: async function (accounts) {
|
||||
this.walletAccounts = accounts
|
||||
await this.refreshAddresses()
|
||||
await this.scanAddressWithAmount()
|
||||
|
||||
if (this.payment.changeWallet) {
|
||||
const changeAccount = this.walletAccounts.find(
|
||||
|
|
Loading…
Add table
Reference in a new issue