Remove onError onSignIn
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -62,7 +62,6 @@ class SignInToProfileViewModel(
|
||||
}
|
||||
|
||||
fun signInToAccount(
|
||||
onError: () -> Unit,
|
||||
) {
|
||||
logger.d { "signInToAccount" }
|
||||
validateCredential().let { credentialEntity ->
|
||||
|
||||
Reference in New Issue
Block a user