From 785472b2f12ff7a45b2a7485198b266903282304 Mon Sep 17 00:00:00 2001 From: kangyein9892 Date: Sun, 5 Jan 2025 00:48:17 +0900 Subject: [PATCH] =?UTF-8?q?chore/#12:=20=EC=BD=94=EB=A3=A8=ED=8B=B4=20?= =?UTF-8?q?=EC=8A=A4=EC=BD=94=ED=94=84=20=EC=A4=91=EC=B2=A9=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sopt/and/presentation/my/viewmodel/MyViewModel.kt | 2 +- .../and/presentation/sign/signin/viewmodel/SignInViewModel.kt | 4 ++-- .../and/presentation/sign/signup/viewmodel/SignUpViewModel.kt | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/presentation/src/main/java/org/sopt/and/presentation/my/viewmodel/MyViewModel.kt b/presentation/src/main/java/org/sopt/and/presentation/my/viewmodel/MyViewModel.kt index 3899f94..87c1aa5 100644 --- a/presentation/src/main/java/org/sopt/and/presentation/my/viewmodel/MyViewModel.kt +++ b/presentation/src/main/java/org/sopt/and/presentation/my/viewmodel/MyViewModel.kt @@ -54,7 +54,7 @@ class MyViewModel @Inject constructor( userRepository.clearUserPreference() } - fun handleMyIntentError(message: String) = viewModelScope.launch { + fun handleMyIntentError(message: String) { setSideEffect(MySideEffect.SnackBarText(message)) } diff --git a/presentation/src/main/java/org/sopt/and/presentation/sign/signin/viewmodel/SignInViewModel.kt b/presentation/src/main/java/org/sopt/and/presentation/sign/signin/viewmodel/SignInViewModel.kt index 955e2a2..471ed32 100644 --- a/presentation/src/main/java/org/sopt/and/presentation/sign/signin/viewmodel/SignInViewModel.kt +++ b/presentation/src/main/java/org/sopt/and/presentation/sign/signin/viewmodel/SignInViewModel.kt @@ -73,11 +73,11 @@ class SignInViewModel @Inject constructor( setSideEffect(SignInSideEffect.NavigateToMy) } - fun handleSignInSideEffectError(message: String) = viewModelScope.launch { + fun handleSignInSideEffectError(message: String) { setSideEffect(SignInSideEffect.SnackBarText(message)) } - fun handleSignInSideEffectSuccess() = viewModelScope.launch { + fun handleSignInSideEffectSuccess() { setSideEffect(SignInSideEffect.SnackBar(R.string.signin_success_text)) } diff --git a/presentation/src/main/java/org/sopt/and/presentation/sign/signup/viewmodel/SignUpViewModel.kt b/presentation/src/main/java/org/sopt/and/presentation/sign/signup/viewmodel/SignUpViewModel.kt index f3f1163..6db60a8 100644 --- a/presentation/src/main/java/org/sopt/and/presentation/sign/signup/viewmodel/SignUpViewModel.kt +++ b/presentation/src/main/java/org/sopt/and/presentation/sign/signup/viewmodel/SignUpViewModel.kt @@ -63,11 +63,11 @@ class SignUpViewModel @Inject constructor( setSideEffect(SignUpSideEffect.NavigateToSignIn) } - fun handleSignUpIntentError(message: String) = viewModelScope.launch { + fun handleSignUpIntentError(message: String) { setSideEffect(SignUpSideEffect.SnackBarText(message)) } - fun handleSignUpIntentSuccess() = viewModelScope.launch { + fun handleSignUpIntentSuccess() { setSideEffect(SignUpSideEffect.SnackBar(R.string.signup_success_text)) }