From b1028d48f83966537bff71ea3490d3471943a228 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 15 Jul 2024 15:32:54 -0600 Subject: [PATCH] Merge pull request #45426 from Expensify/hybridapp-crash Check for hybrid app when completing onboarding (cherry picked from commit 38fe5d59df3c63cc54460352ca416b83cc461af0) --- src/components/HybridAppMiddleware/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HybridAppMiddleware/index.tsx b/src/components/HybridAppMiddleware/index.tsx index b3d346a1b65c..5a8d8d6dfebe 100644 --- a/src/components/HybridAppMiddleware/index.tsx +++ b/src/components/HybridAppMiddleware/index.tsx @@ -54,7 +54,7 @@ function HybridAppMiddleware({children, authenticated}: HybridAppMiddlewareProps * We propagate it from OldDot to NewDot with native method due to limitations of old app. */ useEffect(() => { - if (completedHybridAppOnboarding === undefined) { + if (completedHybridAppOnboarding === undefined || !NativeModules.HybridAppModule) { return; }