Skip to content

Commit

Permalink
add fallback reportId as -1
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Oct 3, 2024
1 parent c0a9a7c commit 52c3de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function ReportActionItem({

const attachmentContextValue = useMemo(() => ({reportID, type: CONST.ATTACHMENT_TYPE.REPORT}), [reportID]);

const mentionReportContextValue = useMemo(() => ({currentReportID: report?.reportID ?? ''}), [report?.reportID]);
const mentionReportContextValue = useMemo(() => ({currentReportID: report?.reportID ?? '-1'}), [report?.reportID]);

const actionableItemButtons: ActionableItem[] = useMemo(() => {
if (ReportActionsUtils.isActionableAddPaymentCard(action) && shouldRenderAddPaymentCard()) {
Expand Down

0 comments on commit 52c3de1

Please sign in to comment.