Skip to content

Commit

Permalink
fix Do not default string IDs lint failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ishpaul777 committed Jan 15, 2025
1 parent 4921332 commit 1063cfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ROUTES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ const ROUTES = {
},
MONEY_REQUEST_STEP_CATEGORY: {
route: ':action/:iouType/category/:transactionID/:reportID/:reportActionID?',
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string, backTo = '', reportActionID?: string) =>
getRoute: (action: IOUAction, iouType: IOUType, transactionID: string, reportID: string | undefined, backTo = '', reportActionID?: string) =>
getUrlWithBackToParam(`${action as string}/${iouType as string}/category/${transactionID}/${reportID}${reportActionID ? `/${reportActionID}` : ''}`, backTo),
},
MONEY_REQUEST_ATTENDEE: {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/iou/request/step/IOURequestStepUpgrade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ function IOURequestStepUpgrade({
selected: true,
accountID: 0,
isPolicyExpenseChat: true,
reportID: policyDataRef.current?.expenseChatReportID ?? '-1',
reportID: policyDataRef.current?.expenseChatReportID,
policyID: policyDataRef.current?.policyID,
searchText: policyDataRef.current?.policyName,
},
]);
Navigation.goBack();
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(action, CONST.IOU.TYPE.SUBMIT, transactionID, policyDataRef.current?.expenseChatReportID ?? '-1'));
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(action, CONST.IOU.TYPE.SUBMIT, transactionID, policyDataRef.current?.expenseChatReportID));
}}
policyName=""
isCategorizing
Expand Down

0 comments on commit 1063cfa

Please sign in to comment.