Remove onError onSignIn

This commit is contained in:
Kgothatso Ngako
2026-05-22 00:00:54 +02:00
parent b501529a58
commit bfcbf4c995
2 changed files with 2 additions and 13 deletions

View File

@@ -180,12 +180,7 @@ fun SignInToProfileScreen(
} else {
Button(
onClick = {
signInToProfileViewModel.signInToAccount(
onError = {
signInToProfileViewModel.signInToProfileUIState.value =
SignInToProfileUIState.Error
}
)
signInToProfileViewModel.signInToAccount()
}
) {
Text(
@@ -231,12 +226,7 @@ fun SignInToProfileScreen(
} else {
Button(
onClick = {
signInToProfileViewModel.signInToAccount(
onError = {
signInToProfileViewModel.signInToProfileUIState.value =
SignInToProfileUIState.Error
}
)
signInToProfileViewModel.signInToAccount()
}
) {
Text(

View File

@@ -62,7 +62,6 @@ class SignInToProfileViewModel(
}
fun signInToAccount(
onError: () -> Unit,
) {
logger.d { "signInToAccount" }
validateCredential().let { credentialEntity ->