Fixed check if no ATC has been entered

This commit is contained in:
dankito 2020-01-25 11:30:56 +01:00 committed by dankito
parent 57aba0971d
commit 3507bcd0ab
1 changed files with 1 additions and 1 deletions

View File

@ -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)))
}