From db527d84f588d725df1f5999ee79f6cf002aa396 Mon Sep 17 00:00:00 2001 From: gscottqueen Date: Mon, 4 Mar 2024 13:53:09 -0500 Subject: [PATCH] PXBF-997-translated-relative-benefit-icons: trim es from the returned lifeEventId --- .../src/shared/components/RelativeBenefitList/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benefit-finder/src/shared/components/RelativeBenefitList/index.jsx b/benefit-finder/src/shared/components/RelativeBenefitList/index.jsx index 4556800bd..5dd61c90c 100644 --- a/benefit-finder/src/shared/components/RelativeBenefitList/index.jsx +++ b/benefit-finder/src/shared/components/RelativeBenefitList/index.jsx @@ -14,6 +14,7 @@ const RelativeBenefitList = ({ data, carrotType }) => { {data && data.map((item, i) => { const { title, link, cta, body, lifeEventId } = item.lifeEvent + const trimedLifeEventId = lifeEventId.replace('es_', '') return ( { body={body} key={`${title}-${i}`} carrotType={carrotType} - icon={lifeEventId} + icon={trimedLifeEventId} /> ) })}