fix: display invoices badge currency#54277
Conversation
|
@dukenv0307 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] |
| const styles = useThemeStyles(); | ||
| const policy = policyDraft?.id ? policyDraft : policyProp; | ||
| const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policy?.id ?? '-1'); | ||
| const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policy?.id ?? CONST.DEFAULT_NUMBER_ID.toString()); |
There was a problem hiding this comment.
| const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policy?.id ?? CONST.DEFAULT_NUMBER_ID.toString()); | |
| const workspaceAccountID = PolicyUtils.getWorkspaceAccountID(policy?.id); |
| const [connectionSyncProgress] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CONNECTION_SYNC_PROGRESS}${policy?.id}`); | ||
| const [currentUserLogin] = useOnyx(ONYXKEYS.SESSION, {selector: (session) => session?.email}); | ||
| const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${route.params?.policyID ?? '-1'}`); | ||
| const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${route.params?.policyID ?? CONST.DEFAULT_NUMBER_ID}`); |
There was a problem hiding this comment.
| const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${route.params?.policyID ?? CONST.DEFAULT_NUMBER_ID}`); | |
| const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${route.params?.policyID`); |
|
@nkdengineer Can you pls update the PR based on this convention: https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md#default-value-for-inexistent-IDs? We can raise the bounty about the extra fix. |
|
@dukenv0307 I tried to fix eslint here but after trying it it involves a lot of files so I think it is out of scope in this PR |
|
@nkdengineer Can you point out which large files you need to fix? Is there any in this PR? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-12-20.at.17.38.54.movAndroid: mWeb ChromeScreen.Recording.2024-12-20.at.17.30.30.moviOS: NativeScreen.Recording.2024-12-20.at.17.37.55.moviOS: mWeb SafariScreen.Recording.2024-12-20.at.17.30.49.mov |
|
✋ 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/srikarparsi in version: 9.0.80-1 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.80-6 🚀
|


Explanation of Change
Fixed Issues
$ #53916
PROPOSAL: #53916 (comment)
Tests
Offline 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
am.mov
iOS: Native
ios.mov
iOS: mWeb Safari
im.mov
MacOS: Chrome / Safari
MacOS: Desktop