Skip to content

Commit

Permalink
changed undefined to null as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-carlos-sousa committed Apr 9, 2024
1 parent 525ba4d commit 0709570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Offer.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function validatePublishEndDateLimit(publishDate, publishEndDate) {

// jobMaxDuration must be larger than jobMinDuration
function validateJobMaxDuration(value) {
if (this.jobType === "FREELANCE" && this.jobMinDuration === undefined) return true;
if (this.jobType === "FREELANCE" && this.jobMinDuration === null) return true;
return value >= this.jobMinDuration;
}

Expand Down

0 comments on commit 0709570

Please sign in to comment.