Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

fix: Min duration message showing when value is float. #392

Merged
merged 1 commit into from
Jul 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/routes/JobForm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const validateDuration = (x, y, {duration}) => {
if (duration === undefined) return undefined;
const converted = Number(duration);

if (isNaN(converted) || converted !== Math.floor(converted) || converted < MIN_DURATION) {
if (isNaN(converted) || converted < MIN_DURATION) {
return `Talent as a Service engagements have a ${MIN_DURATION} week minimum commitment.`;
}

Expand Down