mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix trezor label
This commit is contained in:
parent
d3f793a44a
commit
85a4e39b05
@ -579,7 +579,7 @@ module.exports = class MetamaskController extends EventEmitter {
|
||||
const keyState = await keyringController.addNewAccount(keyring)
|
||||
const newAccounts = await keyringController.getAccounts()
|
||||
// Assuming the trezor account is the last one
|
||||
const trezorAccount = newAccounts[newAccounts.length -1]
|
||||
const trezorAccount = newAccounts[newAccounts.length - 1]
|
||||
this.preferencesController.setAddresses(newAccounts)
|
||||
newAccounts.forEach(address => {
|
||||
if (!oldAccounts.includes(address)) {
|
||||
|
Loading…
Reference in New Issue
Block a user