Fixed that when entering TAN is required chunkedResponseHandler got called for same handledResponse multiple time, therefore adding e.g. same transactions multiple times to bookedTransactions

This commit is contained in:
dankito 2020-09-15 20:49:36 +02:00
parent 68742cc6a3
commit 0f672f414b
1 changed files with 5 additions and 1 deletions

View File

@ -675,7 +675,11 @@ open class FinTsClient(
}
}
?: run {
dialogContext.chunkedResponseHandler?.invoke(handledResponse)
// e.g. response = enter TAN response, but handledResponse is then response after entering TAN, e.g. account transactions
// -> chunkedResponseHandler would get called for same handledResponse multiple times
if (response == handledResponse) {
dialogContext.chunkedResponseHandler?.invoke(handledResponse)
}
callback(handledResponse)
}