diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx index 58c10029..dfa10668 100644 --- a/src/screens/Login/LoginForm.tsx +++ b/src/screens/Login/LoginForm.tsx @@ -19,6 +19,7 @@ import {cleanError} from '#/lib/strings/errors' import {createFullHandle} from '#/lib/strings/handles' import {logger} from '#/logger' import {useSessionApi} from '#/state/session' +import {useLoggedOutViewControls} from '#/state/shell/logged-out' import {useRequestNotificationsPermission} from 'lib/notifications/notifications' import {atoms as a, useTheme} from '#/alf' import {Button, ButtonIcon, ButtonText} from '#/components/Button' @@ -67,6 +68,7 @@ export const LoginForm = ({ const {_} = useLingui() const {login} = useSessionApi() const requestNotificationsPermission = useRequestNotificationsPermission() + const {setShowLoggedOut} = useLoggedOutViewControls() const onPressSelectService = React.useCallback(() => { Keyboard.dismiss() @@ -113,6 +115,7 @@ export const LoginForm = ({ }, 'LoginForm', ) + setShowLoggedOut(false) requestNotificationsPermission('Login') } catch (e: any) { const errMsg = e.toString()