Skip to content

Commit

Permalink
Fix password field entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Atick authored and atick-faisal committed Oct 12, 2024
1 parent 8e24982 commit 9f62e27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auth/src/main/kotlin/dev/atick/auth/ui/AuthViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class AuthViewModel @Inject constructor(
viewModelScope.launch {
val result = authRepository.signInWithEmailAndPassword(
email = authUiState.value.data.email.value,
password = authUiState.value.data.email.value,
password = authUiState.value.data.password.value,
)
if (result.isSuccess) {
_authUiState.update { UiState(AuthScreenData()) }
Expand All @@ -114,7 +114,7 @@ class AuthViewModel @Inject constructor(
val result = authRepository.registerWithEmailAndPassword(
name = authUiState.value.data.name.value,
email = authUiState.value.data.email.value,
password = authUiState.value.data.email.value,
password = authUiState.value.data.password.value,
activity = activity,
)
if (result.isSuccess) {
Expand Down

0 comments on commit 9f62e27

Please sign in to comment.