diff --git a/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx b/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx index 240b89a4f0..4b60e55c4b 100644 --- a/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx +++ b/editor.planx.uk/src/@planx/components/shared/Preview/SummaryList.tsx @@ -15,6 +15,10 @@ import { FONT_WEIGHT_SEMI_BOLD } from "theme"; export default SummaryListsBySections; +/** These component types don't use their node title as the descriptive list title */ +const FIND_PROPERTY_DT = "Property address"; +const DRAW_BOUNDARY_DT = "Location plan"; + const Grid = styled("dl", { shouldForwardProp: (prop) => prop !== "showChangeButton", })<{ showChangeButton?: boolean }>(({ theme, showChangeButton }) => ({ @@ -251,7 +255,12 @@ function SummaryList(props: SummaryListProps) { > Change - {node.data?.title || node.data?.text || "this answer"} + {(node.type === TYPES.FindProperty && FIND_PROPERTY_DT) || + (node.type === TYPES.DrawBoundary && + DRAW_BOUNDARY_DT) || + node.data?.title || + node.data?.text || + "this answer"} @@ -314,7 +323,7 @@ function FindProperty(props: ComponentProps) { props.passport.data?._address; return ( <> -
- A static map displaying the site boundary that you drew. + A static map displaying your location plan.
{/* @ts-ignore */}