chore: fix typo

This commit is contained in:
Vlad Stan
2022-09-08 12:47:59 +03:00
parent 4368422b5c
commit c432671ab7
2 changed files with 4 additions and 4 deletions

View File

@ -233,7 +233,7 @@ async function walletList(path) {
const addressData = mapAddressesData(data) const addressData = mapAddressesData(data)
addressData.note = `Shared on ${currentDateTime()}` addressData.note = `Shared on ${currentDateTime()}`
const lastAcctiveAddress = const lastActiveAddress =
this.addresses this.addresses
.filter( .filter(
a => a =>
@ -243,7 +243,7 @@ async function walletList(path) {
addressData.gapLimitExceeded = addressData.gapLimitExceeded =
!addressData.isChange && !addressData.isChange &&
addressData.addressIndex > addressData.addressIndex >
lastAcctiveAddress.addressIndex + DEFAULT_RECEIVE_GAP_LIMIT lastActiveAddress.addressIndex + DEFAULT_RECEIVE_GAP_LIMIT
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

View File

@ -227,7 +227,7 @@ const watchOnly = async () => {
newAddr => !this.addresses.find(a => a.address === newAddr.address) newAddr => !this.addresses.find(a => a.address === newAddr.address)
) )
const lastAcctiveAddress = const lastActiveAddress =
uniqueAddresses.filter(a => !a.isChange && a.hasActivity).pop() || uniqueAddresses.filter(a => !a.isChange && a.hasActivity).pop() ||
{} {}
@ -237,7 +237,7 @@ const watchOnly = async () => {
a.gapLimitExceeded = a.gapLimitExceeded =
!a.isChange && !a.isChange &&
a.addressIndex > a.addressIndex >
lastAcctiveAddress.addressIndex + DEFAULT_RECEIVE_GAP_LIMIT lastActiveAddress.addressIndex + DEFAULT_RECEIVE_GAP_LIMIT
}) })
this.addresses.push(...uniqueAddresses) this.addresses.push(...uniqueAddresses)
} }