From 134b6e4f5e7ee8240a86bd72a5298ba63722ae20 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 9 Jun 2020 18:07:23 +0200 Subject: [PATCH] Fixed that may SmsTAN gets chosen --- .../commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt index cb030b3f..cab8c649 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsClient.kt @@ -195,7 +195,7 @@ open class FinTsClient( } else { didOverwriteUserUnselectedTanProcedure = true - customer.selectedTanProcedure = customer.supportedTanProcedures.first() + customer.selectedTanProcedure = selectSuggestedTanProcedure(customer) ?: customer.supportedTanProcedures.first() } }