Clear errors on set password submit#11165
Merged
Merged
Conversation
This was referenced Sep 21, 2022
Justicea83
reviewed
Sep 26, 2022
| key: ONYXKEYS.ACCOUNT, | ||
| value: { | ||
| isLoading: true, | ||
| errors: null, |
Contributor
There was a problem hiding this comment.
I think the errors should be set to an empty array, no?
Contributor
Author
There was a problem hiding this comment.
We set it to null to completely get rid of the errors key. You can see an example here
Contributor
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
19 tasks
Contributor
|
🚀 Deployed to staging by @Justicea83 in version: 1.2.7-0 🚀
|
|
@luacmartins Issue did not fix in Android app with build 1.2.7.1 Record_2022-09-27-01-53-51_4f9154176b47c00da84e32064abf1c48.mp4 |
Contributor
|
🚀 Deployed to production by @roryabraham in version: 1.2.7-2 🚀
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
cc @MonilBhavsar this is a small clean up for #11145. I think it's better to set errors to null in
optimisticDatawhen we trigger that API request than checking if we are loading in the page.Details
Fixed Issues
$ #11186
Tests
Resent linkbutton twiceSet Password, see the invalid link errorLink has been re-sentmessagePR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Same as test steps.
Screenshots
Web
web.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android