Skip to content

Commit

Permalink
PXBF-1674-add-search-title-json-data: incldue search title conditiona…
Browse files Browse the repository at this point in the history
…l in title prop
  • Loading branch information
scottqueen-bixal committed Aug 20, 2024
1 parent 185bb7a commit 371a25e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ const RelativeBenefitList = ({ data, carrotType }) => {
<ul className="bf-usa-card-group usa-card-group">
{data &&
data.map((item, i) => {
const { title, link, cta, body, lifeEventId } = item.lifeEvent
const { title, searchTitle, link, cta, body, lifeEventId } =
item.lifeEvent
const trimedLifeEventId = lifeEventId.replace('es_', '')

return (
<Card
className="bf-usa-card--relative-benefit bf-usa-card usa-card tablet:grid-col-12"
title={title}
title={searchTitle || title}
cta={cta}
href={link}
body={body}
Expand Down

0 comments on commit 371a25e

Please sign in to comment.