From 755f424921f2c6b419ccee6c719c2a3ff30802f4 Mon Sep 17 00:00:00 2001 From: Michael Baghel <31278895+mbaghel@users.noreply.github.com> Date: Tue, 20 Jul 2021 14:46:56 +0400 Subject: [PATCH] fix: Min duration message showing when value is float. --- src/routes/JobForm/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/JobForm/utils.js b/src/routes/JobForm/utils.js index 095e0475..9f2876ec 100644 --- a/src/routes/JobForm/utils.js +++ b/src/routes/JobForm/utils.js @@ -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.`; }