diff --git a/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt b/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt index 1d8668b..3b60d58 100644 --- a/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt +++ b/BankingPersistence/src/commonMain/kotlin/net/codinux/banking/persistence/SqliteBankingRepository.kt @@ -351,7 +351,7 @@ open class SqliteBankingRepository : BankingRepository { holding.quantity, holding.currency, mapAmount(holding.totalBalance), mapAmount(holding.marketValue), - holding.performancePercentage, + holding.performancePercentage?.toDouble(), mapAmount(holding.totalCostPrice), mapAmount(holding.averageCostPrice), mapInstant(holding.pricingTime), mapDate(holding.buyingDate)