Skip to content

Commit

Permalink
addNewAccount doesn't select new account (#1296)
Browse files Browse the repository at this point in the history
feat: addNewAccount doesn't select new account
  • Loading branch information
mikesposito authored and MajorLift committed Oct 11, 2023
1 parent e3af4c0 commit dbc8cc4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions packages/keyring-controller/src/KeyringController.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ describe('KeyringController', () => {
currentKeyringMemState.keyrings[0].accounts,
),
).toBe(true);
expect(preferences.setSelectedAddress.called).toBe(false);
});
});

Expand Down
1 change: 0 additions & 1 deletion packages/keyring-controller/src/KeyringController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ export class KeyringController extends BaseController<
const addedAccountAddress = newAccounts.find(
(selectedAddress: string) => !oldAccounts.includes(selectedAddress),
);
this.setSelectedAddress(addedAccountAddress);
return {
keyringState: await this.fullUpdate(),
addedAccountAddress,
Expand Down

0 comments on commit dbc8cc4

Please sign in to comment.