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()
|
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) {
|
} catch (error) {
|
||||||
this.$q.notify({
|
this.$q.notify({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
|
@ -172,7 +164,6 @@ async function walletList(path) {
|
||||||
const wallet = this.walletAccounts.find(w => w.id === walletId) || {}
|
const wallet = this.walletAccounts.find(w => w.id === walletId) || {}
|
||||||
wallet.address_no = addressData.addressIndex
|
wallet.address_no = addressData.addressIndex
|
||||||
this.$emit('new-receive-address', addressData)
|
this.$emit('new-receive-address', addressData)
|
||||||
this.$emit('accounts-update', this.walletAccounts)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created: async function () {
|
created: async function () {
|
||||||
|
|
|
||||||
|
|
@ -1053,6 +1053,7 @@ const watchOnly = async () => {
|
||||||
updateAccounts: async function (accounts) {
|
updateAccounts: async function (accounts) {
|
||||||
this.walletAccounts = accounts
|
this.walletAccounts = accounts
|
||||||
await this.refreshAddresses()
|
await this.refreshAddresses()
|
||||||
|
await this.scanAddressWithAmount()
|
||||||
|
|
||||||
if (this.payment.changeWallet) {
|
if (this.payment.changeWallet) {
|
||||||
const changeAccount = this.walletAccounts.find(
|
const changeAccount = this.walletAccounts.find(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue