Skip to content

Commit

Permalink
Merge pull request #2055 from maproulette/validationDescriptionsFix
Browse files Browse the repository at this point in the history
make descriptions more specific
  • Loading branch information
AndrewPhilbin authored Jul 13, 2023
2 parents 5e1bad5 + 3965502 commit b2e0f97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,12 @@ will not be able to make sense of it.
},

instructionsDescription: {
id: 'Admin.EditChallenge.form.instructionsDescription',
defaultMessage: 'Instructions must have more than 150 characters and at least 20 words.',
id: "Admin.EditChallenge.form.instructionsDescription",
defaultMessage: "Instructions must have more than 150 characters and at least 20 words.",
},

nameDescription: {
id: 'Admin.EditChallenge.form.nameDescription',
id: "Admin.EditChallenge.form.nameDescription",
defaultMessage: "The challenge name is required and must be more than 3 characters long."
},

Expand Down
6 changes: 3 additions & 3 deletions src/services/Error/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,15 @@ export default defineMessages({
},
challengeSaveNameFailure: {
id: "Errors.challengeSaveFailure.challengeSaveNameFailure",
defaultMessage: "The challenge name is required and must be more than 3 characters long.",
defaultMessage: "The 'NAME OF YOUR CHALLENGE' field is required and must be more than 3 characters long.",
},
challengeSaveDescriptionFailure: {
id: "Errors.challengeSaveFailure.challengeSaveDescriptionFailure",
defaultMessage: "The description is required.",
defaultMessage: "The 'DESCRIPTION OF YOUR CHALLENGE' field is required.",
},
challengeSaveInstructionFailure: {
id: "Errors.challengeSaveFailure.challengeSaveInstructionFailure",
defaultMessage: "Instructions must have more than 150 characters and at least 20 words.",
defaultMessage: "The 'DETAILED INSTRUCTIONS FOR MAPPERS' field must have more than 150 characters and at least 20 words.",
},
challengeRebuildFailure: {
id: "Errors.challenge.rebuildFailure",
Expand Down

0 comments on commit b2e0f97

Please sign in to comment.