Fixed returning original getTanMethodsResponse and therefore its errors etc.

This commit is contained in:
dankito 2021-11-01 15:33:42 +01:00
parent 96ea5b168b
commit bd2c96bbcb
1 changed files with 2 additions and 2 deletions

View File

@ -112,11 +112,11 @@ open class FinTsJobExecutor(
handleGetUsersTanMethodsResponse(response, dialogContext) { getTanMethodsResponse ->
if (bank.tanMethodsAvailableForUser.isEmpty()) { // could not retrieve supported tan methods for user
callback(BankResponse(false, noTanMethodSelected = true))
callback(getTanMethodsResponse)
} else {
getUsersTanMethod(bank) {
if (bank.isTanMethodSelected == false) {
callback(BankResponse(false, noTanMethodSelected = true))
callback(getTanMethodsResponse)
} else if (bank.tanMedia.isEmpty() && isJobSupported(bank, CustomerSegmentId.TanMediaList)) { // tan media not retrieved yet
getTanMediaList(bank, TanMedienArtVersion.Alle, TanMediumKlasse.AlleMedien) {
callback(getTanMethodsResponse) // TODO: judge if bank requires selecting TAN media and if though evaluate getTanMediaListResponse