diff --git a/pixleesdk/src/main/java/com/pixlee/pixleesdk/data/PXLProduct.java b/pixleesdk/src/main/java/com/pixlee/pixleesdk/data/PXLProduct.java index 0b09e7a2..243c78be 100644 --- a/pixleesdk/src/main/java/com/pixlee/pixleesdk/data/PXLProduct.java +++ b/pixleesdk/src/main/java/com/pixlee/pixleesdk/data/PXLProduct.java @@ -74,7 +74,7 @@ public boolean hasAvailableSalesPrice() { isWithinSalesDateRange = salesStartDate.getTime() <= today.getTime(); } else if (salesStartDate == null && salesEndDate != null) { isWithinSalesDateRange = salesEndDate.getTime() >= today.getTime(); - } else if (salesEndDate != null && salesEndDate != null) { + } else if (salesStartDate != null && salesEndDate != null) { isWithinSalesDateRange = salesStartDate.getTime() <= today.getTime() && salesEndDate.getTime() >= today.getTime(); }