fix: add specific error message for duplicate SRP imports #22536
+62
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Description
Changelog
CHANGELOG entry: fix error message when trying to import an SRP with an account that is already imported via private key
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MUL-491
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds explicit handling and user-facing message when an SRP import fails due to a duplicate account, with tests and i18n updates.
app/components/Views/ImportNewSecretRecoveryPhrase/index.tsx):switchand add case forKeyringController - The account you are trying to import is a duplicate, showingerror_duplicate_accountalert.app/components/Views/ImportNewSecretRecoveryPhrase/index.test.tsx):locales/languages/en.json):import_new_secret_recovery_phrase.error_duplicate_accountcopy.Written by Cursor Bugbot for commit f43d802. This will update automatically on new commits. Configure here.