From 1890fd915145c29bbb3350078fe2bf2add007666 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 10 Sep 2024 01:28:09 +0200 Subject: [PATCH] Implemented changed TanMethod --- .../kotlin/net/codinux/banking/ui/dialogs/EnterTanDialog.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 5fcae2e..cfef224 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 @@ -110,7 +110,11 @@ fun EnterTanDialog(tanChallengeReceived: TanChallengeReceived, onDismiss: () -> "TAN Verfahren", challenge.availableTanMethods.sortedBy { it.identifier }, challenge.selectedTanMethod, - { Log.info { "User selected TanMethod $it" } }, // TODO: change TanMethod + { tanMethod -> + if (tanMethod.type != TanMethodType.ChipTanFlickercode) { + tanChallengeReceived.callback(EnterTanResult(null, tanMethod)) + } + }, { it.displayName } ) { tanMethod -> if (tanMethod.type == TanMethodType.ChipTanFlickercode) {