Skip to content

Commit 8d881d2

Browse files
committed
fix: Add category button is not responsive
1 parent a9e86da commit 8d881d2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pages/iou/request/step/IOURequestStepCategory.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ function IOURequestStepCategory({
100100
icon: expensifyIcons.Plus,
101101
text: translate('workspace.categories.addCategory'),
102102
onSelected: () => {
103-
if (!policyID || !report?.reportID) {
103+
const reportID = report?.reportID ?? routeReportID;
104+
if (!policyID || !reportID) {
104105
return;
105106
}
106-
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY_CREATE.getRoute(action, iouType, transactionID, report.reportID, reportActionID, backTo));
107+
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY_CREATE.getRoute(action, iouType, transactionID, reportID, reportActionID, backTo));
107108
},
108109
},
109110
]

0 commit comments

Comments
 (0)