Skip to content

Commit

Permalink
refactor: 로딩 제거 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junjange committed Aug 23, 2024
1 parent 6c37ec9 commit aa48076
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class RegisterViewModel(
saveAlarmToken()
saveJwtToken(tokens)
} else {
_loading.emit(false)
_navigateAction.emit(RegisterNavigationAction.NavigateToProfileSetting(idToken = kakaAccessToken.accessToken))
}
},
Expand All @@ -106,6 +105,7 @@ class RegisterViewModel(
}
},
)
_loading.emit(false)
}

private fun saveAlarmToken() {
Expand Down Expand Up @@ -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 ->
Expand Down

0 comments on commit aa48076

Please sign in to comment.