Fixed cancelling TAN process on dismissing EnterTanDialog
This commit is contained in:
parent
335c5923d6
commit
34b77f862c
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue