diff --git a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts index 6ae6bb0a2516..7c310435f687 100644 --- a/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts +++ b/src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts @@ -44,6 +44,11 @@ function ReportScreenIDSetter({route, reports, policies, navigation, isFirstTime useEffect(() => { // Don't update if there is a reportID in the params already if (route?.params?.reportID) { + const reportActionID = route?.params?.reportActionID; + const regexValidReportActionID = new RegExp(/^\d*$/); + if (reportActionID && !regexValidReportActionID.test(reportActionID)) { + navigation.setParams({reportActionID: ''}); + } App.confirmReadyToOpenApp(); return; }