Fixed cancelling TAN process on dismissing EnterTanDialog

This commit is contained in:
dankito 2024-09-09 03:15:51 +02:00
parent 335c5923d6
commit 34b77f862c
1 changed files with 2 additions and 4 deletions

View File

@ -57,6 +57,7 @@ fun EnterTanDialog(tanChallengeReceived: TanChallengeReceived, onDismiss: () ->
fun confirmCalled() {
if (enteredTan.length > 2) {
tanChallengeReceived.callback(EnterTanResult(enteredTan))
onDismiss()
}
}
@ -69,10 +70,7 @@ fun EnterTanDialog(tanChallengeReceived: TanChallengeReceived, onDismiss: () ->
confirmButtonEnabled = enteredTan.length > 2 && isNotADecoupledTanMethod,
showProgressIndicatorOnConfirmButton = isDecoupledMethod,
onConfirm = { confirmCalled() },
onDismiss = {
tanChallengeReceived.callback(EnterTanResult(null))
onDismiss()
}
onDismiss = { dismiss() }
) {
Column(Modifier.fillMaxWidth()) {
Column(Modifier.fillMaxWidth()) {