From f3b4b68123889a4bbdafe4115cf428de0ddb9eee Mon Sep 17 00:00:00 2001 From: DylanDylann Date: Sat, 27 Jan 2024 11:40:10 +0700 Subject: [PATCH] fix add comment --- .../AppNavigator/createCustomStackNavigator/CustomRouter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts index cda6b773c861..0ca5417e9f6e 100644 --- a/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts +++ b/src/libs/Navigation/AppNavigator/createCustomStackNavigator/CustomRouter.ts @@ -22,6 +22,9 @@ const getTopMostReportIDFromRHP = (state: State): string => { } const topmostRoute = state.routes.at(-1); + + // In the case of money requests, send money and split bill, + // we want to ignore the associated report and fall back to the default navigation behavior if ( topmostRoute?.params && 'iouType' in topmostRoute.params &&