From 1eb90a955dcae83288ea8ca8936d56266cc6f8cc Mon Sep 17 00:00:00 2001 From: Hezekiel Tamire Date: Tue, 10 Oct 2023 18:04:58 +0300 Subject: [PATCH 1/2] fix: add isNavigationReady --- src/pages/ConciergePage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/ConciergePage.js b/src/pages/ConciergePage.js index e8509024b469..64641ac24648 100644 --- a/src/pages/ConciergePage.js +++ b/src/pages/ConciergePage.js @@ -32,8 +32,10 @@ function ConciergePage(props) { useFocusEffect(() => { if (_.has(props.session, 'authToken')) { // Pop the concierge loading page before opening the concierge report. - Navigation.goBack(ROUTES.HOME); - Report.navigateToConciergeChat(); + Navigation.isNavigationReady().then(() => { + Navigation.goBack(ROUTES.HOME); + Report.navigateToConciergeChat(); + }) } else { Navigation.navigate(); } From b5a1d8f18598e68f2cff74d5b45a8f4c722e24b8 Mon Sep 17 00:00:00 2001 From: Hezekiel Tamire Date: Wed, 11 Oct 2023 01:30:18 +0300 Subject: [PATCH 2/2] fix prettier --- src/pages/ConciergePage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ConciergePage.js b/src/pages/ConciergePage.js index 64641ac24648..cfd452f0c952 100644 --- a/src/pages/ConciergePage.js +++ b/src/pages/ConciergePage.js @@ -35,7 +35,7 @@ function ConciergePage(props) { Navigation.isNavigationReady().then(() => { Navigation.goBack(ROUTES.HOME); Report.navigateToConciergeChat(); - }) + }); } else { Navigation.navigate(); }