Skip to content

Commit

Permalink
Redirect to a confiramtion page when there is workspace when qab is c…
Browse files Browse the repository at this point in the history
…licked
  • Loading branch information
etCoderDysto committed Dec 9, 2024
1 parent 7925c9b commit fe83c6a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,8 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl
onSelected: () =>
interceptAnonymousUser(() => {
selectOption(() => {
const quickActionReportID = isValidReport ? policyChatForActivePolicy?.reportID ?? '-1' : ReportUtils.generateReportID();
IOU.startMoneyRequest(CONST.IOU.TYPE.SUBMIT, quickActionReportID ?? '-1', CONST.IOU.REQUEST_TYPE.SCAN, true);
const quickActionReportID = policyChatForActivePolicy?.reportID || ReportUtils.generateReportID();
IOU.startMoneyRequest(CONST.IOU.TYPE.SUBMIT, quickActionReportID, CONST.IOU.REQUEST_TYPE.SCAN, true);
}, true);
}),
shouldShowSubscriptRightAvatar: true,
Expand All @@ -497,7 +497,6 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl
quickActionReport,
navigateToQuickAction,
selectOption,
isValidReport,
]);

const viewTourTaskReportID = introSelected?.viewTour;
Expand Down

0 comments on commit fe83c6a

Please sign in to comment.