Skip to content

fix: creating an identity with --force no longer switches to the ne…#2860

Merged
mergify[bot] merged 2 commits intomasterfrom
SDK-911-dfx-identity-new-force-always-changes-selected-identity-to-the-newly-created-identity
Jan 10, 2023
Merged

fix: creating an identity with --force no longer switches to the ne…#2860
mergify[bot] merged 2 commits intomasterfrom
SDK-911-dfx-identity-new-force-always-changes-selected-identity-to-the-newly-created-identity

Conversation

@viviveevee
Copy link
Copy Markdown
Contributor

@viviveevee viviveevee commented Jan 10, 2023

…wly created identity

Description

#2141 introduced a special case to temporarily switch to the anonymous identity if the currently selected identity gets re-created with dfx identity new --force. The logic to switch to anonymous and back to the newly created identity mistakenly triggers every time. dfx identity new --force isn’t supposed to automatically switch to the newly created identity.

Fixes SDK-911

How Has This Been Tested?

Added e2e

Checklist:

  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

…ges-selected-identity-to-the-newly-created-identity
@mergify mergify Bot merged commit a7f24d3 into master Jan 10, 2023
@mergify mergify Bot deleted the SDK-911-dfx-identity-new-force-always-changes-selected-identity-to-the-newly-created-identity branch January 10, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant