Skip to content

Commit

Permalink
Merge pull request #45426 from Expensify/hybridapp-crash
Browse files Browse the repository at this point in the history
Check for hybrid app when completing onboarding
  • Loading branch information
luacmartins authored Jul 15, 2024
2 parents fef5dfc + 8de552b commit 38fe5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HybridAppMiddleware/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 38fe5d5

Please sign in to comment.