Skip to content

Commit

Permalink
Merge pull request #5369 from rubyforgood/FireLemons-patch-2
Browse files Browse the repository at this point in the history
small fix for confusing language
  • Loading branch information
FireLemons authored Nov 15, 2023
2 parents 9f2500e + 0469bc6 commit 860f18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/src/validated_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class RangedDatePicker extends ValidatableFormSectionComponent {
if (setDate > max && !isNaN(max)) {
return `Date for ${this.name} is past maximum allowed date of ${max.toDateString()}`
} else if (setDate < min && !isNaN(min)) {
return `Date for ${this.name} is behind minimum allowed date of ${min.toDateString()}`
return `Date for ${this.name} is before minimum allowed date of ${min.toDateString()}`
}
}

Expand Down

0 comments on commit 860f18e

Please sign in to comment.