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 0e62eb4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 0e62eb4

Please sign in to comment.