fix: $0 doesn't save in the Receipt#54949
Conversation
|
@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/VideosAndroid: NativeScreen.Recording.2025-01-09.at.10.59.28.AM.movAndroid: mWeb ChromeScreen.Recording.2025-01-09.at.10.55.30.AM.moviOS: NativeScreen.Recording.2025-01-09.at.11.00.45.AM.moviOS: mWeb SafariScreen.Recording.2025-01-09.at.11.01.18.AM.movMacOS: Chrome / SafariScreen.Recording.2025-01-09.at.10.53.21.AM.movMacOS: DesktopScreen.Recording.2025-01-09.at.10.56.10.AM.mov |
|
|
||
| function IndividualExpenseRulesSectionSubtitle({policy, translate, styles}: IndividualExpenseRulesSectionSubtitleProps) { | ||
| const policyID = policy?.id ?? '-1'; | ||
| const policyID = `${policy?.id ?? CONST.DEFAULT_NUMBER_ID}`; |
There was a problem hiding this comment.
why can't you just do:
| const policyID = `${policy?.id ?? CONST.DEFAULT_NUMBER_ID}`; | |
| const policyID = policy?.id; |
Am i missing something ? this looks a bit hacky and doesn't explain the requirement
There was a problem hiding this comment.
@allgandalf policyID here is used to pass as a params to the getRoute functions below. We have a similar example here
There was a problem hiding this comment.
@nkdengineer can you raise a discussion in open source channel, this is highly disregarded approach i guess
There was a problem hiding this comment.
it contains the same question and the link to the discussion, are we aligned with it in this PR?
There was a problem hiding this comment.
missed this comment, sorry
|
@nkdengineer this has conflicts |
|
bump @nkdengineer |
|
@allgandalf i fixed |
|
✋ 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/danieldoglas in version: 9.0.94-1 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.94-25 🚀
|
Explanation of Change
Fixed Issues
$ #54290
PROPOSAL: #54290 (comment)
Tests
Offline tests
Same as tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov