Skip to content

Commit

Permalink
fix(validators): fix wrong error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin committed Sep 6, 2023
1 parent c334c1e commit bfd64cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ const validateInfobarSectionFields = (field, value) => {
case "description": {
// Description is too short
if (value.length <= INFOBAR_DESCRIPTION_MIN_LENGTH) {
return `Ddescription should be longer than ${INFOBAR_DESCRIPTION_MIN_LENGTH} characters.`
return `Description should be longer than ${INFOBAR_DESCRIPTION_MIN_LENGTH} characters.`
}
// Description is too long
if (getLengthWithoutTags(value) >= INFOBAR_DESCRIPTION_MAX_LENGTH) {
Expand Down Expand Up @@ -940,6 +940,7 @@ export {
validateLink,
validateHighlight,
validateHighlights,
validateHeroSectionFields,
validateDropdownElem,
validateDropdownElems,
validateSection,
Expand Down

0 comments on commit bfd64cb

Please sign in to comment.