Skip to content

Commit

Permalink
Merge pull request Expensify#33723 from samilabud/welcome_message_wro…
Browse files Browse the repository at this point in the history
…ng_link_33230

Welcome message wrong link 33230
  • Loading branch information
roryabraham authored Jan 2, 2024
2 parents bab1a1d + 36ef4ed commit 8ec1fc0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/libs/Navigation/AppNavigator/ReportScreenIDSetter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8ec1fc0

Please sign in to comment.