From 192a39a9d3ac459560481dbd9809941de79a9190 Mon Sep 17 00:00:00 2001 From: "cwj5@troder.com" Date: Mon, 18 Sep 2023 22:24:43 +0900 Subject: [PATCH] =?UTF-8?q?refactor:TOP-83=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../signup/location/LocationViewModel.kt | 22 ++++++++----------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationViewModel.kt b/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationViewModel.kt index 3f3089c2..28e74bd3 100644 --- a/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationViewModel.kt +++ b/feature/signin/src/main/java/tht/feature/signin/signup/location/LocationViewModel.kt @@ -103,25 +103,21 @@ class LocationViewModel @Inject constructor( _sideEffectFlow.emit(LocationSideEffect.NavigateNextView) }.onFailure { _sideEffectFlow.emit( - when (it) { - is SignupException.InvalidateLocationInfo -> { - LocationSideEffect.ShowToast( + LocationSideEffect.ShowToast( + when (it) { + is SignupException.InvalidateLocationInfo -> { stringProvider.getString(StringProvider.ResId.InvalidateLocation) - ) - } + } - is SignupException.SignupUserInvalidateException -> { - LocationSideEffect.ShowToast( + is SignupException.SignupUserInvalidateException -> { stringProvider.getString(StringProvider.ResId.SignupUserInvalidate) + " $it" - ) - } + } - else -> { - LocationSideEffect.ShowToast( + else -> { stringProvider.getString(StringProvider.ResId.LocationPatchFail) + " $it" - ) + } } - } + ) ) } _dataLoading.value = false