Fixed check if no ATC has been entered
This commit is contained in:
parent
57aba0971d
commit
3507bcd0ab
|
@ -344,7 +344,7 @@ open class FinTsClient @JvmOverloads constructor(
|
||||||
if (bank.changeTanMediumParameters?.enteringAtcAndTanRequired == true) {
|
if (bank.changeTanMediumParameters?.enteringAtcAndTanRequired == true) {
|
||||||
enteredAtc = callback.enterTanGeneratorAtc(customer, newActiveTanMedium)
|
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
|
val message = "Bank requires to enter ATC and TAN in order to change TAN medium." // TODO: translate
|
||||||
return FinTsClientResponse(Response(false, exception = Exception(message)))
|
return FinTsClientResponse(Response(false, exception = Exception(message)))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue