diff --git a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt index f5faf6a3..0f50a58c 100644 --- a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt +++ b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/mapper/FinTsModelMapper.kt @@ -91,7 +91,11 @@ open class FinTsModelMapper { bankAccount.lastTransactionsRetrievalTime = retrievalTime } - bankAccount.bookedTransactions = map(accountTransactionsResponse) + if (accountTransactionsResponse.bookedTransactions.isNotEmpty()) { + bankAccount.bookedTransactions = bankAccount.bookedTransactions.toMutableList().apply { + addAll(map(accountTransactionsResponse)) + } + } } }