diff --git a/android/app/src/main/java/com/happy/friendogly/presentation/ui/register/RegisterViewModel.kt b/android/app/src/main/java/com/happy/friendogly/presentation/ui/register/RegisterViewModel.kt index e5923f0e0..e687b4d86 100644 --- a/android/app/src/main/java/com/happy/friendogly/presentation/ui/register/RegisterViewModel.kt +++ b/android/app/src/main/java/com/happy/friendogly/presentation/ui/register/RegisterViewModel.kt @@ -94,7 +94,6 @@ class RegisterViewModel( saveAlarmToken() saveJwtToken(tokens) } else { - _loading.emit(false) _navigateAction.emit(RegisterNavigationAction.NavigateToProfileSetting(idToken = kakaAccessToken.accessToken)) } }, @@ -106,6 +105,7 @@ class RegisterViewModel( } }, ) + _loading.emit(false) } private fun saveAlarmToken() { @@ -134,7 +134,6 @@ class RegisterViewModel( private suspend fun saveJwtToken(jwtToken: JwtToken) { saveJwtTokenUseCase(jwtToken = jwtToken).fold( onSuccess = { - _loading.emit(false) _navigateAction.emit(RegisterNavigationAction.NavigateToAlreadyLogin) }, onError = { error ->