From bd2c96bbcb152c4b5391fee9a4346e7e86f2e4fc Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 1 Nov 2021 15:33:42 +0100 Subject: [PATCH] Fixed returning original getTanMethodsResponse and therefore its errors etc. --- .../kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt index b877953d..d3fb3870 100644 --- a/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt +++ b/fints4k/src/commonMain/kotlin/net/dankito/banking/fints/FinTsJobExecutor.kt @@ -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