Skip to content

Commit

Permalink
Fix condition evaluation to false due to param being a string
Browse files Browse the repository at this point in the history
  • Loading branch information
youssef-lr committed Feb 6, 2024
1 parent b5bb986 commit 2831fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function MoneyRequestAction({
}

// If the childReportID is not present, we need to create a new thread
const childReportID = action?.childReportID ?? '0';
const childReportID = action?.childReportID ?? 0;
if (!childReportID) {
const thread = ReportUtils.buildTransactionThread(action, requestReportID);
const userLogins = PersonalDetailsUtils.getLoginsByAccountIDs(thread.participantAccountIDs ?? []);
Expand Down

0 comments on commit 2831fef

Please sign in to comment.