Skip to content

Commit

Permalink
Replace salesEndDate with salesStartDate (#44)
Browse files Browse the repository at this point in the history
Co-authored-by: sungjun <[email protected]>
  • Loading branch information
SungjunApp and sungjun authored Apr 30, 2021
1 parent 16423ba commit 1e808b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 1e808b2

Please sign in to comment.