Skip to content

Commit

Permalink
Fix threshold validation blocking submitting form
Browse files Browse the repository at this point in the history
  • Loading branch information
SemaiCZE committed Oct 22, 2017
1 parent c5c51f0 commit 1195074
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ const validate = ({

if (pointsPercentualThreshold) {
const numericThreshold = Number(pointsPercentualThreshold);
if (pointsPercentualThreshold !== Math.round(numericThreshold).toString()) {
if (
pointsPercentualThreshold.toString() !==
Math.round(numericThreshold).toString()
) {
errors['pointsPercentualThreshold'] = (
<FormattedMessage
id="app.editAssignmentForm.validation.pointsPercentualThresholdMustBeInteger"
Expand Down

0 comments on commit 1195074

Please sign in to comment.