diff --git a/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/data/explore/model/Merchant.kt b/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/data/explore/model/Merchant.kt index 635c703ee..ecabcef7e 100644 --- a/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/data/explore/model/Merchant.kt +++ b/features/exploredash/src/main/java/org/dash/wallet/features/exploredash/data/explore/model/Merchant.kt @@ -50,11 +50,11 @@ data class Merchant( var redeemType: String? = "", @Ignore var minCardPurchase: Double? = null, @Ignore var maxCardPurchase: Double? = null, - var savingsPercentage: Int = 0, + var savingsPercentage: Int? = 0, @Ignore var physicalAmount: Int = 0 ) : SearchResult() { // 1% discount is 0.01 val savingsPercentageAsDouble: Double - get() = savingsPercentage.toDouble() / 10000 + get() = (savingsPercentage?.toDouble() ?: 0.0) / 10000 }