-
Notifications
You must be signed in to change notification settings - Fork 3.5k
IOU - Fix Infinite loading spinner on split bill with invalid phone number #8314
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
Conversation
| if (response.jsonCode !== 200) { | ||
| processIOUErrorResponse(response); | ||
| return; | ||
| } | ||
|
|
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.
| if (response.jsonCode !== 200) { | |
| processIOUErrorResponse(response); | |
| return; | |
| } | |
| if (response.jsonCode !== 200) { | |
| return response; | |
| } | |
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.
Now that I see it 😅
|
PR is ready |
|
|
IOU - Fix Infinite loading spinner on split bill with invalid phone number (cherry picked from commit 3f6396c)
…8314 🍒 Cherry pick PR #8314 to staging 🍒
|
🚀 Cherry-picked to staging by @marcaaron in version: 1.1.46-1 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Details
Return early on error, and let the next
.thenhandle itFixed Issues
$ #8308
Tests
Please enter a valid phone number, with the country code (e.g. +1234567890)
Success case
PR 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
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** 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
Please enter a valid phone number, with the country code (e.g. +1234567890)
Success case
Screenshots
Web
Screen.Recording.2022-03-25.at.7.34.58.AM.mov
Mobile Web
Screen.Recording.2022-03-25.at.8.08.39.AM.mov
Desktop
Screen.Recording.2022-03-25.at.7.55.33.AM.mov
iOS
Screen.Recording.2022-03-25.at.8.04.31.AM.mov
Android
screen-20220325-080632.mp4