diff --git a/ground/src/main/java/com/google/android/ground/MainViewModel.kt b/ground/src/main/java/com/google/android/ground/MainViewModel.kt index 438438ef5a..27da61223e 100644 --- a/ground/src/main/java/com/google/android/ground/MainViewModel.kt +++ b/ground/src/main/java/com/google/android/ground/MainViewModel.kt @@ -126,7 +126,7 @@ constructor( } private fun getDirectionAfterSignIn(): NavDirections = - if (surveyRepository.activeSurvey != null) { + if (surveyRepository.selectedSurveyId != null) { HomeScreenFragmentDirections.showHomeScreen() } else { SurveySelectorFragmentDirections.showSurveySelectorScreen(true)