refactor: clean-up

This commit is contained in:
Vlad Stan 2022-07-25 11:24:02 +03:00
parent c5755ac587
commit afbdfeff8c
2 changed files with 1 additions and 9 deletions

View file

@ -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 () {

View file

@ -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(