Skip to content

Commit

Permalink
🎨 Remove redundant input checking in LoginViewModel
Browse files Browse the repository at this point in the history
  • Loading branch information
yjeong-k committed Oct 29, 2023
1 parent c90c6e6 commit 7217eb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class LoginViewModel @Inject internal constructor(
}

fun login() {
if (!isValidEmail(emailInput) && emailInput.isEmpty()) {
if (!isValidEmail(emailInput)) {
_uiState.update { currentState ->
currentState.copy(
isValidEmail = false,
Expand Down

0 comments on commit 7217eb8

Please sign in to comment.