From 8de552b8e109b3ffb119a4d70467fad31fa13a07 Mon Sep 17 00:00:00 2001 From: Puneet Lath Date: Mon, 15 Jul 2024 16:02:27 -0500 Subject: [PATCH] Check for hybrid app --- 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; }