diff --git a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/service/BankingService.kt b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/service/BankingService.kt index c8adf17..f9c698c 100644 --- a/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/service/BankingService.kt +++ b/composeApp/src/commonMain/kotlin/net/codinux/banking/ui/service/BankingService.kt @@ -92,6 +92,8 @@ class BankingService( private suspend fun handleSuccessfulGetAccountDataResponse(response: GetAccountDataResponse) { try { val newUser = response.user + newUser.displayIndex = uiState.userAccounts.value.size + val newUserEntity = bankingRepository.persistUserAccount(newUser) log.info { "Saved user account $newUserEntity with ${newUserEntity.accounts.flatMap { it.bookedTransactionsEntities }.size} transactions" }