Skip to content

Commit

Permalink
final fix
Browse files Browse the repository at this point in the history
  • Loading branch information
madmax330 committed Jan 25, 2023
1 parent ec00235 commit 394ab32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/Navigation/AppNavigator/AuthScreens.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class AuthScreens extends React.Component {
isModal: true,
};
const url = getCurrentUrl();
const openOnAdminRoom = url ? new URL(url).searchParams.get('openOnAdminRoom') : false;
const openOnAdminRoom = url ? new URL(url).searchParams.get('openOnAdminRoom') : '';

return (
<RootStack.Navigator
Expand Down Expand Up @@ -185,7 +185,7 @@ class AuthScreens extends React.Component {
const MainDrawerNavigator = require('./MainDrawerNavigator').default;
return MainDrawerNavigator;
}}
initialParams={{openOnAdminRoom}}
initialParams={{openOnAdminRoom: openOnAdminRoom === 'true'}}
/>
<RootStack.Screen
name="ValidateLogin"
Expand Down

0 comments on commit 394ab32

Please sign in to comment.