Skip to content

Commit

Permalink
[feat] #15 아이디 / 비밀번호 입력 없을 때 조건 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyobeen-Park committed Jun 7, 2024
1 parent 3d9b2f8 commit fb7fc91
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ class LoginActivity : AppCompatActivity() {
private fun initLoginBtnClickListener() {
with(binding) {
btnLoginSignin.setOnClickListener {
loginViewModel.postLogin(etLoginId.text.toString(), etLoginPw.text.toString())
if (etLoginId.text.isEmpty()) {
showToastMessage("아이디를 입력해주세요")
} else if (etLoginPw.text.isEmpty()) {
showToastMessage("비밀번호를 입력해주세요")
} else {
loginViewModel.postLogin(etLoginId.text.toString(), etLoginPw.text.toString())
}
}
}
}
Expand Down

0 comments on commit fb7fc91

Please sign in to comment.