Skip to content

Commit 0709570

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)