Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 7705431

Browse files
authored
Set special price as active, if no dates are set
1 parent 62686bf commit 7705431

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib/taxcalc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ function isSpecialPriceActive(fromDate, toDate) {
33
fromDate = new Date(fromDate) || false
44
toDate = new Date(toDate) || false
55

6+
if (!fromDate && !toDate) {
7+
return true
8+
}
9+
610
if (fromDate && toDate) {
711
return fromDate < now && toDate > now
812
}

0 commit comments

Comments
 (0)