diff --git a/feature/authentication/src/main/java/com/crisiscleanup/feature/authentication/RootAuthViewModel.kt b/feature/authentication/src/main/java/com/crisiscleanup/feature/authentication/RootAuthViewModel.kt index b8cb81352..a3c48055e 100644 --- a/feature/authentication/src/main/java/com/crisiscleanup/feature/authentication/RootAuthViewModel.kt +++ b/feature/authentication/src/main/java/com/crisiscleanup/feature/authentication/RootAuthViewModel.kt @@ -24,7 +24,7 @@ class RootAuthViewModel @Inject constructor( ): ViewModel() { val authState = accountDataRepository.accountData .map { - if (it.hasAuthenticated) { + if (it.areTokensValid) { AuthState.Authenticated(it) } else { AuthState.NotAuthenticated