Skip to content

Commit

Permalink
Clean up console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
joemarct committed Sep 9, 2024
1 parent 2d49cf9 commit e1e1770
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/stores/addresses.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ export const useAddressesStore = defineStore('addresses', {
)
},
async fillAddressSets() {
console.log('Test 1', this.addressSets.length, this.maxPresavedAddresses)
this.cleanAddressSets()
if (this.addressSets.length >= this.maxPresavedAddresses) return

Expand All @@ -105,12 +104,10 @@ export const useAddressesStore = defineStore('addresses', {
const { paymentIndex } = await wallet.getLastPaymentIndex()
lastPaymentIndex = await paymentIndex || 0
}
console.log('Test 2, lastPaymentIndex:', lastPaymentIndex)

// setup hard limit on filling address
let loopsLeft = 20
while(this.addressSets.length < this.maxPresavedAddresses && loopsLeft > 0) {
console.log(this.addressSets.length)
let nextIndex = (lastPaymentIndex+1) % MAX_PAYMENT_INDEX
if (nextIndex === 0) nextIndex++

Expand All @@ -134,7 +131,6 @@ export const useAddressesStore = defineStore('addresses', {
}
},
removeAddressSet(address) {
console.log('Removed:', address)
this.addressSets = this.addressSets
.filter(addressSet => addressSet?.receiving != address && addressSet?.change != address)
},
Expand Down

0 comments on commit e1e1770

Please sign in to comment.