Skip to content

Commit 0e62eb4

Browse files
changed undefined to null as requested
1 parent 525ba4d commit 0e62eb4

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/models/Offer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export function validatePublishEndDateLimit(publishDate, publishEndDate) {
138138

139139
// jobMaxDuration must be larger than jobMinDuration
140140
function validateJobMaxDuration(value) {
141-
if (this.jobType === "FREELANCE" && this.jobMinDuration === undefined) return true;
141+
if (this.jobType === "FREELANCE" && this.jobMinDuration === null) return true;
142142
return value >= this.jobMinDuration;
143143
}
144144

0 commit comments

Comments
 (0)