Skip to content

Commit

Permalink
chore: Update MapAndLabel root error messages (#3600)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Aug 30, 2024
1 parent c9ac9c6 commit 38779d2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,10 @@ const Root = () => {
}, [setFeatures, addFeature]);

const rootError: string =
(errors.min && `You must provide at least ${schema.min} response(s)`) ||
(errors.max && `You can provide at most ${schema.max} response(s)`) ||
(errors.min &&
`You must plot at least ${schema.min} ${schema.type}(s) on the map`) ||
(errors.max &&
`You must plot at most ${schema.max} ${schema.type}(s) on the map`) ||
"";

return (
Expand Down

0 comments on commit 38779d2

Please sign in to comment.