diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt index fbcb4f40..9451313a 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/FinTsClient.kt @@ -344,7 +344,7 @@ open class FinTsClient @JvmOverloads constructor( if (bank.changeTanMediumParameters?.enteringAtcAndTanRequired == true) { enteredAtc = callback.enterTanGeneratorAtc(customer, newActiveTanMedium) - if (enteredAtc.hasAtcBeenEntered) { + if (enteredAtc.hasAtcBeenEntered == false) { val message = "Bank requires to enter ATC and TAN in order to change TAN medium." // TODO: translate return FinTsClientResponse(Response(false, exception = Exception(message))) }