From 38779d2a077af7df6cc80d64e6cd4c500fae68b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 30 Aug 2024 15:22:08 +0100 Subject: [PATCH] chore: Update MapAndLabel root error messages (#3600) --- .../src/@planx/components/MapAndLabel/Public/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx index cf59fd253f..8507c21cf7 100644 --- a/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx +++ b/editor.planx.uk/src/@planx/components/MapAndLabel/Public/index.tsx @@ -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 (