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

(cherry picked from commit 38fe5d5)
  • Loading branch information
luacmartins authored and OSBotify committed Jul 15, 2024
1 parent b6af997 commit b1028d4
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 b1028d4

Please sign in to comment.