From c4e9cb124d24dfe3f0e5a994548a010a932f4449 Mon Sep 17 00:00:00 2001 From: EunhoKang Date: Thu, 16 Nov 2023 14:21:37 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20it=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/app/priceguard/ui/login/LoginActivity.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt b/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt index 2483b8c..90e35c3 100644 --- a/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt +++ b/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt @@ -53,16 +53,16 @@ class LoginActivity : AppCompatActivity() { private fun collectEvent() { repeatOnStarted { - loginViewModel.event.collect { - when (it) { + loginViewModel.event.collect { eventType -> + when (eventType) { LoginViewModel.LoginEvent.Invalid -> showDialog( getString(R.string.login_fail), getString(R.string.login_fail_message), getString(R.string.login_fail_accept) ) - LoginViewModel.LoginEvent.LoginFailed -> TODO() - LoginViewModel.LoginEvent.LoginSuccess -> TODO() + LoginViewModel.LoginEvent.LoginFailed -> TODO("로그인 실패 시 처리") + LoginViewModel.LoginEvent.LoginSuccess -> TODO("로그인 성공 시 처리") } } }