Fixed returning original getTanMethodsResponse and therefore its errors etc.
This commit is contained in:
parent
96ea5b168b
commit
bd2c96bbcb
|
@ -112,11 +112,11 @@ open class FinTsJobExecutor(
|
||||||
|
|
||||||
handleGetUsersTanMethodsResponse(response, dialogContext) { getTanMethodsResponse ->
|
handleGetUsersTanMethodsResponse(response, dialogContext) { getTanMethodsResponse ->
|
||||||
if (bank.tanMethodsAvailableForUser.isEmpty()) { // could not retrieve supported tan methods for user
|
if (bank.tanMethodsAvailableForUser.isEmpty()) { // could not retrieve supported tan methods for user
|
||||||
callback(BankResponse(false, noTanMethodSelected = true))
|
callback(getTanMethodsResponse)
|
||||||
} else {
|
} else {
|
||||||
getUsersTanMethod(bank) {
|
getUsersTanMethod(bank) {
|
||||||
if (bank.isTanMethodSelected == false) {
|
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
|
} else if (bank.tanMedia.isEmpty() && isJobSupported(bank, CustomerSegmentId.TanMediaList)) { // tan media not retrieved yet
|
||||||
getTanMediaList(bank, TanMedienArtVersion.Alle, TanMediumKlasse.AlleMedien) {
|
getTanMediaList(bank, TanMedienArtVersion.Alle, TanMediumKlasse.AlleMedien) {
|
||||||
callback(getTanMethodsResponse) // TODO: judge if bank requires selecting TAN media and if though evaluate getTanMediaListResponse
|
callback(getTanMethodsResponse) // TODO: judge if bank requires selecting TAN media and if though evaluate getTanMediaListResponse
|
||||||
|
|
Loading…
Reference in New Issue