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

Commit 5e5249b

Browse files
authored
Merge pull request #181 from DivanteLtd/Igloczek-patch-1
Set special price as active, if no dates are set
2 parents 62686bf + 7705431 commit 5e5249b

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)