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

Commit 3d53219

Browse files
authored
Merge pull request #392 from mbaghel/dev
fix: Min duration message showing when value is float.
2 parents 66fecb9 + 755f424 commit 3d53219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/JobForm/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const validateDuration = (x, y, {duration}) => {
3030
if (duration === undefined) return undefined;
3131
const converted = Number(duration);
3232

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

0 commit comments

Comments
 (0)