diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialog.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialog.kt index 4182f92..717449f 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialog.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/dialogs/EnterTanDialog.kt @@ -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()) {