From fe43511b0eb5afb647f25332263906b875a239d8 Mon Sep 17 00:00:00 2001 From: Sujan Poudel Date: Sun, 14 Jan 2024 18:29:28 +0545 Subject: [PATCH] fix: #51 showing same price on new deal notificatin (#52) --- .../me/sujanpoudel/playdeals/domain/entities/DealEntity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/me/sujanpoudel/playdeals/domain/entities/DealEntity.kt b/backend/src/main/kotlin/me/sujanpoudel/playdeals/domain/entities/DealEntity.kt index 922d9d7..e4f4625 100644 --- a/backend/src/main/kotlin/me/sujanpoudel/playdeals/domain/entities/DealEntity.kt +++ b/backend/src/main/kotlin/me/sujanpoudel/playdeals/domain/entities/DealEntity.kt @@ -47,6 +47,6 @@ private fun Float.formatAsPrice(): String { return "$int.$formattedDecimal" } -fun DealEntity.formattedCurrentPrice() = "${currency.asCurrencySymbol()}${normalPrice.formatAsPrice()}" +fun DealEntity.formattedCurrentPrice() = "${currency.asCurrencySymbol()}${currentPrice.formatAsPrice()}" fun DealEntity.formattedNormalPrice() = "${currency.asCurrencySymbol()}${normalPrice.formatAsPrice()}"