Skip to content

Commit

Permalink
Key off accounts (#2669)
Browse files Browse the repository at this point in the history
* Key off accounts

* Key off accounts in ChoosePassword as well
  • Loading branch information
rickycodes authored May 11, 2021
1 parent 0312418 commit c2c3727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/Views/ChoosePassword/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class ChoosePassword extends PureComponent {
if (hdKeyring.accounts.includes(selectedAddress)) {
PreferencesController.setSelectedAddress(selectedAddress);
} else {
PreferencesController.setSelectedAddress(hdKeyring[0]);
PreferencesController.setSelectedAddress(hdKeyring.accounts[0]);
}
};

Expand Down
2 changes: 1 addition & 1 deletion app/core/Vault.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ export const recreateVaultWithSamePassword = async (password = '', selectedAddre
if (hdKeyring.accounts.includes(selectedAddress)) {
PreferencesController.setSelectedAddress(selectedAddress);
} else {
PreferencesController.setSelectedAddress(hdKeyring[0]);
PreferencesController.setSelectedAddress(hdKeyring.accounts[0]);
}
};

0 comments on commit c2c3727

Please sign in to comment.