Clear validate error on refresh#24513
Conversation
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@mananjadhav this is ready for review. |
| } | ||
| User.clearContactMethodErrors(props.contactMethod, 'validateLogin'); | ||
|
|
||
| // eslint-disable-next-line react-hooks/exhaustive-deps |
There was a problem hiding this comment.
question why wouldn't we want to depend on props.contactMethod?
There was a problem hiding this comment.
We just want to run this on component mount and not nececarily on the contact method change. I think changing the contact method will rrequire the component to unmount and mount again anyway.
There was a problem hiding this comment.
Your decision here I don't think it makes a difference.
There was a problem hiding this comment.
Let's add the comment explaining this, right before the eslint ignore?
mananjadhav
left a comment
There was a problem hiding this comment.
Code change looks good to me. I'll test it now.
Reviewer Checklist
Screenshots/VideosWebweb-clear-error-message.movMobile Web - Chromemweb-chrome-clear-error-message.movMobile Web - Safarimweb-safari-clear-error-message.movDesktopdesktop-clear-error-message.moviOSios-clear-error-message.movAndroidandroid-clear-error-message.movThanks for the quick PR @WikusKriek. Tests well. @johnmlee101 All yours. 🎀 👀 🎀 C+ reviewed. |
|
@mananjadhav |
|
@johnmlee101 Yes I did 🤦 . I added the screenshot but I didn't mark the item. Done now. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 1.3.56-0 🚀
|
|
@mvtglobally Applause reported this issue as a QA fail. It's not a deploy blocker but can you provide some more details? |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|

Details
Validate error is cleared on refresh and navigating away and back.
Fixed Issues
$ #23813
PROPOSAL: #23813 (comment)
Tests
Offline tests
N/A
QA Steps
Same as Test Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly 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)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Web.Chrome.2023-08-13.at.19.50.58.mov
Mobile Web - Chrome
Android.chrome.2023-08-13.at.20.09.31.mov
Mobile Web - Safari
IOS.safari.2023-08-13.at.19.49.33.mov
Desktop
Desktop.2023-08-13.at.19.42.54.mov
iOS
IOS.native.2023-08-13.at.19.47.39.mov
Android
https://github.com/Expensify/App/assets/41372145/589122ef-5c72-4f3c-9002-222a0f666348