From fe83c6af2a94679fb31a43af2e006914908da68e Mon Sep 17 00:00:00 2001 From: Dysto coder Date: Mon, 9 Dec 2024 11:38:55 +0300 Subject: [PATCH] Redirect to a confiramtion page when there is workspace when qab is clicked --- .../sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx index d36003960fe4..fc76b7b0a1fe 100644 --- a/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx +++ b/src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx @@ -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, @@ -497,7 +497,6 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl quickActionReport, navigateToQuickAction, selectOption, - isValidReport, ]); const viewTourTaskReportID = introSelected?.viewTour;