-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(26748): increment index label until get a label not duplicated #26959
base: develop
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [de58189]
Page Load Metrics (1897 ± 93 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #26959 +/- ##
========================================
Coverage 70.17% 70.17%
========================================
Files 1425 1425
Lines 49659 49663 +4
Branches 13891 13891
========================================
+ Hits 34846 34850 +4
Misses 14813 14813 ☔ View full report in Codecov by Sentry. |
5832e7b
to
1b1f8b0
Compare
Quality Gate passedIssues Measures |
Builds ready [4b90b44]
Page Load Metrics (1719 ± 87 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [6ae013c]
Page Load Metrics (1823 ± 72 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Quality Gate passedIssues Measures |
Builds ready [10ed013]
Page Load Metrics (2452 ± 99 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
In the context of importing hardware wallet accounts, this PR prevents account name to be labelled the same as an already created account and will increment its index until getting a label that is not duplicated.
Also, I removed
preferencesController.setAccountLabel
call as it was also callingaccountController.setAccountName
under the hood (throughmessagingSystem
). This was causing an uncaught error and it was duplicating the call tosetAccountName
anyway.Related issues
Fixes: #26748
Manual testing steps
Screenshots/Recordings
Before
Enregistrement.de.l.ecran.2024-08-30.a.16.32.49.mp4
After
Enregistrement.de.l.ecran.2024-09-09.a.10.53.01.mp4
Pre-merge author checklist
Pre-merge reviewer checklist