Skip to content

Commit

Permalink
check, that added account was not added before
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov committed Dec 21, 2018
1 parent 949e378 commit 097807e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class LedgerBridgeKeyring extends EventEmitter {
} else {
address = this._addressFromIndex(pathBase, i)
}
this.accounts.push(address)
if (!this.accounts.includes(address)) {
this.accounts.push(address)
}
this.page = 0
}
resolve(this.accounts)
Expand Down

0 comments on commit 097807e

Please sign in to comment.