-
Notifications
You must be signed in to change notification settings - Fork 991
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
feat(wallet)_: Saved addresses limit #22069
Conversation
Jenkins BuildsClick to see older builds (4)
|
(set-address-or-ens trimmed-value) | ||
(set-ens-address "") | ||
(set-error (validate (string/lower-case trimmed-value))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A minor change in order of set-state.
This fixes an non-fatal crash if you type/paste an existing address, the error state is updated which triggers the re-render (for error view) before the actual address text is set in the state. The error state should be validated after the values are set.
(assoc :network-preferences-names | ||
(network-utils/network-preference-prefix->network-names (:chain-short-names saved-address))) | ||
(assoc :ens? (not (string/blank? (:ens saved-address)))))) | ||
(assoc saved-address :ens? (not (string/blank? (:ens saved-address))))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the network-preferences-names
key which was added by client to existing saved address data for easy display in UI. Since, we removed multi chain support. It's not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
86fb84e
to
041857e
Compare
55% of end-end tests have passed
Failed tests (5)Click to expandClass TestWalletOneDevice:
Class TestCommunityMultipleDeviceMerged:
Passed tests (6)Click to expandClass TestWalletOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletMultipleDevice:
Class TestCommunityOneDeviceMerged:
|
80% of end-end tests have passed
Failed tests (1)Click to expandClass TestWalletOneDevice:
Passed tests (4)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestWalletOneDevice:
|
@smohamedjavid Thanks for your PR! |
Signed-off-by: Mohamed Javid <[email protected]>
041857e
to
f80991b
Compare
fixes #22045
Summary
This PR adds limit for adding saved addresses upto 20 to prevent any unwanted behaviour.
22045.mp4
Platforms
Steps to test
status: ready