Login screen fixed

This commit is contained in:
2025-12-03 21:26:53 +03:00
parent c53bd718c0
commit f5cab8e875
2 changed files with 2 additions and 2 deletions

View File

@@ -27,5 +27,5 @@ object LocalDataSource {
appContext.dataStore.edit { it[Keys.CODE] = code } appContext.dataStore.edit { it[Keys.CODE] = code }
} }
val isCodePresentFlow: Flow<Boolean> = appContext.dataStore.data.map { it[Keys.CODE] != "" || it[Keys.CODE] != null } val isCodePresentFlow: Flow<Boolean> = appContext.dataStore.data.map { it[Keys.CODE] != "" && it[Keys.CODE] != null }
} }

View File

@@ -34,7 +34,7 @@ fun AppNavHost(
codePresence: Boolean? codePresence: Boolean?
) { ) {
val startDestination = if (codePresence == null) SplashScreenDestination val startDestination = if (codePresence == null) SplashScreenDestination
else if (codePresence == true) MainScreenDestination else if (codePresence) MainScreenDestination
else AuthScreenDestination else AuthScreenDestination
NavHost( NavHost(