@bluedot-innovation/models 2.0.15 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -28,9 +28,7 @@ function validateDateRange (endDate, magicCallback) {
|
|
|
28
28
|
endDate = new Date(endDate)
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
if (endDate && endDate <
|
|
32
|
-
return magicCallback(false, `endDate cannot be less than current date.`)
|
|
33
|
-
} else if (startDate && endDate && endDate < startDate) {
|
|
31
|
+
if (startDate && endDate && endDate < startDate) {
|
|
34
32
|
return magicCallback(false, `startDate has to be less than endDate.`)
|
|
35
33
|
}
|
|
36
34
|
magicCallback(true)
|