-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: Distance - Error displayed when creating distance expense in workspace that not opened yet. #47599
fix: Distance - Error displayed when creating distance expense in workspace that not opened yet. #47599
Conversation
…kspace that not opened yet. Signed-off-by: krishna2323 <belivethatkg@gmail.com>
@allgandalf 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] |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariScreen.Recording.2024-08-21.at.5.07.54.PM.movMacOS: DesktopScreen.Recording.2024-08-21.at.5.11.31.PM.movAndroid: NativeScreen.Recording.2024-08-21.at.5.34.29.PM.movAndroid: mWeb ChromeScreen.Recording.2024-08-21.at.5.31.59.PM.moviOS: NativeScreen.Recording.2024-08-21.at.5.27.39.PM.moviOS: mWeb SafariScreen.Recording.2024-08-21.at.5.14.41.PM.mov |
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.
Changes LGTM and works well on all platforms
const defaultRate = defaultMileageRate?.customUnitRateID ?? ''; | ||
const rateID = canUseP2PDistanceRequests ? lastSelectedDistanceRates?.[policy?.id ?? ''] ?? defaultRate : defaultRate; |
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.
I find this to be quite a lot of question marks to follow in one line. I think something like this is easier to follow.
const defaultRate = defaultMileageRate?.customUnitRateID ?? ''; | |
const rateID = canUseP2PDistanceRequests ? lastSelectedDistanceRates?.[policy?.id ?? ''] ?? defaultRate : defaultRate; | |
const defaultRate = defaultMileageRate?.customUnitRateID ?? ''; | |
const lastSelectedRate = lastSelectedDistanceRates?.[policy?.id ?? ''] ?? defaultRate; | |
const rateID = canUseP2PDistanceRequests ? lastSelectedRate : defaultRate; |
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.
@puneetlath, updated.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
✋ 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/puneetlath in version: 9.0.24-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.0.24-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.24-5 🚀
|
Details
Fixed Issues
$ #45856
PROPOSAL: #45856 (comment)
Tests
Clear cache and restart
>Reset and refresh
Offline tests
Clear cache and restart
>Reset and refresh
QA Steps
Clear cache and restart
>Reset and refresh
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome_r.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4