Skip to content

Commit

Permalink
use account limit instead of store
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzman committed Oct 13, 2021
1 parent c0b38ae commit f724344
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main/signers/lattice/Lattice/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,11 @@ class Lattice extends Signer {

summary () {
const summary = super.summary()
const addressLimit = store('main.latticeSettings.accountLimit') || 5

return { ...summary, addresses: this.addresses.slice(0, addressLimit) }
return {
...summary,
addresses: this.addresses.slice(0, this.accountLimit || this.addresses.length)
}
}

update () {
Expand Down

0 comments on commit f724344

Please sign in to comment.