Fix optimistic data for distance request#32943
Conversation
|
@allroundexperts 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] |
|
@allroundexperts Has some problem with my android app, please help to test with this device. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-13.at.12.50.41.AM.movAndroid: mWeb ChromeScreen.Recording.2023-12-13.at.12.49.23.AM.moviOS: NativeScreen.Recording.2023-12-13.at.12.45.48.AM.moviOS: mWeb SafariScreen.Recording.2023-12-13.at.12.44.53.AM.movMacOS: Chrome / SafariScreen.Recording.2023-12-13.at.12.38.44.AM.movMacOS: DesktopScreen.Recording.2023-12-13.at.12.42.25.AM.mov |
|
@dukenv0307 Lint is failing. |
|
@allroundexperts Fixed. |
| waitForCollectionCallback: true, | ||
| callback: (val) => { | ||
| if (!val) { | ||
| allTransactionDrafts = {}; |
There was a problem hiding this comment.
Usually, the variable is initialized to {} and then this just becomes an early return. That way it's safe (from a code standpoint) to access allTransactionDrafts before it's fully initialized.
| waitForCollectionCallback: true, | ||
| callback: (val) => { | ||
| if (!val) { | ||
| allTransactionDrafts = {}; |
| }, | ||
| }); | ||
|
|
||
| let allTransactionDrafts; |
There was a problem hiding this comment.
@tgolen So we will initialize it here, right?
tgolen
left a comment
There was a problem hiding this comment.
Perfect, thanks for that change.
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Fix optimistic data for distance request (cherry picked from commit 380e687)
…ing-32943-1 🍒 Cherry pick PR #32943 to staging 🍒
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.11-22 🚀
|
|
🚀 Deployed to staging by https://github.com/luacmartins in version: 1.4.11-22 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.11-25 🚀
|
Details
Fix optimistic data for distance request
Fixed Issues
$ #32891
PROPOSAL: #32891 (comment)
Tests
Offline tests
Same as above
QA 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)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
Android: mWeb Chrome
Screen.Recording.2023-12-13.at.02.11.14.mov
iOS: Native
Screen.Recording.2023-12-13.at.02.19.32.mov
iOS: mWeb Safari
Screen.Recording.2023-12-13.at.02.12.34.mov
MacOS: Chrome / Safari
web-1.mov
MacOS: Desktop
Screen.Recording.2023-12-13.at.02.24.40.mov