Skip to content

Commit

Permalink
minor update.
Browse files Browse the repository at this point in the history
Signed-off-by: Krishna Gupta <[email protected]>
  • Loading branch information
Krishna2323 committed Jun 25, 2024
1 parent f33ab1e commit fdca149
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/PromotedActionsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ const PromotedActions = {
Navigation.goBack();
}
const topmostCentralPaneRoute = getTopmostCentralPaneRoute(navigationRef.getRootState() as State<RootStackParamList>);
const isReportInRHP = topmostCentralPaneRoute?.name === SCREENS.SEARCH.CENTRAL_PANE;

if (!isReportInRHP && isTextHold) {
if (topmostCentralPaneRoute?.name !== SCREENS.SEARCH.CENTRAL_PANE && isTextHold) {
Navigation.dismissModal();
ReportUtils.changeMoneyRequestHoldStatus(reportAction);
return;
Expand Down

0 comments on commit fdca149

Please sign in to comment.