First request #5

Closed
student-21892 wants to merge 14 commits from student-21892/NTO-2025-Android-minipigs:main into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit f5cab8e875 - Show all commits

View File

@@ -27,5 +27,5 @@ object LocalDataSource {
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?
) {
val startDestination = if (codePresence == null) SplashScreenDestination
else if (codePresence == true) MainScreenDestination
else if (codePresence) MainScreenDestination
else AuthScreenDestination
NavHost(