Skip to content

Commit

Permalink
Merge pull request Expensify#53746 from etCoderDysto/fix-qab0-navigation
Browse files Browse the repository at this point in the history
fix: "You no longer have access to your previous.." displayed when submit first expense via QAB
  • Loading branch information
lakchote authored Dec 16, 2024
2 parents 8dff94c + 7273c7a commit ddc1eda
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,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 @@ -465,7 +465,6 @@ function FloatingActionButtonAndPopover({onHideCreateMenu, onShowCreateMenu}: Fl
shouldShowProductTrainingTooltip,
navigateToQuickAction,
selectOption,
isValidReport,
quickActionPolicy,
]);

Expand Down

0 comments on commit ddc1eda

Please sign in to comment.