From bca359d4edad745772a4af675d27a268401f74d9 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 15 Oct 2024 10:26:09 +0200 Subject: [PATCH] Fixed that .toDouble() had been removed --- .../net/codinux/banking/persistence/SqliteBankingRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)