Skip to content

Commit

Permalink
Merge pull request #999 from GSA/997-translated-relative-benefit-icons
Browse files Browse the repository at this point in the history
PXBF-997-translated-relative-benefit-icons: trim es from the returned…
  • Loading branch information
scottqueen-bixal authored Mar 5, 2024
2 parents 922504c + db527d8 commit 8541508
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<Card
Expand All @@ -24,7 +25,7 @@ const RelativeBenefitList = ({ data, carrotType }) => {
body={body}
key={`${title}-${i}`}
carrotType={carrotType}
icon={lifeEventId}
icon={trimedLifeEventId}
/>
)
})}
Expand Down

0 comments on commit 8541508

Please sign in to comment.