Skip to content

Commit f16f529

Browse files
authored
Merge pull request Expensify#63949 from truph01/fix/63347
fix: Invalid deep link handling when opening a report with invalid id
2 parents 41fd828 + 147c179 commit f16f529

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/home/ReportScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function ReportScreen({route, navigation}: ReportScreenProps) {
171171
const reportActionID = route?.params?.reportActionID;
172172
const isValidReportActionID = reportActionID && isNumeric(reportActionID);
173173
if (reportActionID && !isValidReportActionID) {
174-
navigation.setParams({reportActionID: ''});
174+
Navigation.isNavigationReady().then(() => navigation.setParams({reportActionID: ''}));
175175
}
176176
return;
177177
}

0 commit comments

Comments
 (0)