From aa48076a3af669c366f2f2d0c7815d5abbed8a0f Mon Sep 17 00:00:00 2001 From: JunJangE Date: Fri, 23 Aug 2024 10:53:40 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A1=9C=EB=94=A9=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0=20=EB=A1=9C=EC=A7=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../friendogly/presentation/ui/register/RegisterViewModel.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ->