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:
parent
68742cc6a3
commit
0f672f414b
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue