Fix email confirmation dialog on startup (#2097)

* Move init time logging to a fn, add guard

* Fix email confirmation dialog on startup
This commit is contained in:
dan 2023-12-06 00:28:11 +00:00 committed by GitHub
parent e7f973852f
commit fab9f839d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 22 deletions

View file

@ -9,7 +9,6 @@ import {enableFreeze} from 'react-native-screens'
import 'view/icons'
import {init as initPersistedState} from '#/state/persisted'
import {init as initReminders} from '#/state/shell/reminders'
import {useColorMode} from 'state/shell'
import * as analytics from 'lib/analytics/analytics'
import {Shell} from 'view/shell/index'
@ -41,7 +40,6 @@ function InnerApp() {
// init
useEffect(() => {
initReminders()
analytics.init()
const account = persisted.get('session').currentAccount
resumeSession(account)