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

Commit 755f424

Browse files
committed
fix: Min duration message showing when value is float.
1 parent 66fecb9 commit 755f424

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)