Fix going back from magic code page after refresh doesn't show the submitted email#30228
Conversation
|
|
||
| const defaultProps = { | ||
| account: {}, | ||
| credentials: {}, |
There was a problem hiding this comment.
| credentials: {}, | |
| credentials: { | |
| login: '', | |
| }, |
NAB: We can set login default value to be empty string.
| const [login, setLogin] = useState(() => { | ||
| const userLogin = Str.removeSMSDomain(props.credentials.login || ''); | ||
| return userLogin; | ||
| }); |
There was a problem hiding this comment.
| const [login, setLogin] = useState(() => { | |
| const userLogin = Str.removeSMSDomain(props.credentials.login || ''); | |
| return userLogin; | |
| }); | |
| const [login, setLogin] = useState(() => Str.removeSMSDomain(props.credentials.login)); |
NAB: Can be simplified.
There was a problem hiding this comment.
Thanks! updated the code!
Reviewer Checklist
Screenshots/VideosWebCleanShot.2023-10-24.at.12.53.07.mp4Mobile Web - ChromeCleanShot.2023-10-24.at.12.55.27.mp4Mobile Web - SafariCleanShot.2023-10-24.at.12.54.19.mp4DesktopCleanShot.2023-10-24.at.12.59.08.mp4iOSCleanShot.2023-10-24.at.13.08.01.mp4AndroidCleanShot.2023-10-24.at.15.13.23.mp4 |
marcochavezf
left a comment
There was a problem hiding this comment.
LGTM, thank you guys!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
@bernhardoj please help check if the app is crashed by this PR. Step to reproduce:
|
|
@DylanDylann you're right. It's a regression from this PR. Thanks for catching it! I'll raise a PR. |
|
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.3.91-0 🚀
|
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|

Details
If we refresh while on the magic code page and then press the Go back button, the email field is empty.
Fixed Issues
$ #29192
PROPOSAL: #29192 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
Sign out if you are signed in
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
Android: Native
Screen.Recording.2023-10-24.at.11.07.31.mov
Android: mWeb Chrome
Screen.Recording.2023-10-24.at.11.02.59.mov
iOS: Native
Screen.Recording.2023-10-24.at.11.08.22.mov
iOS: mWeb Safari
Screen.Recording.2023-10-24.at.11.03.45.mov
MacOS: Chrome / Safari
Screen.Recording.2023-10-24.at.11.00.14.mov
MacOS: Desktop
Screen.Recording.2023-10-24.at.11.01.37.mov