From 85d014ec284a4346a3de36a7064a9ca68df80939 Mon Sep 17 00:00:00 2001 From: c3024 Date: Fri, 10 Jan 2025 14:16:01 +0530 Subject: [PATCH] add fallback for route params --- src/pages/ConciergePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ConciergePage.tsx b/src/pages/ConciergePage.tsx index 0ce089787230..c4de1e3b4062 100644 --- a/src/pages/ConciergePage.tsx +++ b/src/pages/ConciergePage.tsx @@ -41,7 +41,7 @@ function ConciergePage() { } // Mark the viewTourTask as complete if we are redirected to Concierge after finishing the Navattic tour - const {navattic} = route.params as {navattic?: string}; + const {navattic} = (route.params as {navattic?: string}) ?? {}; if (navattic === CONST.NAVATTIC.COMPLETED) { if (viewTourTaskReport) { if (viewTourTaskReport.stateNum !== CONST.REPORT.STATE_NUM.APPROVED || viewTourTaskReport.statusNum !== CONST.REPORT.STATUS_NUM.APPROVED) {