Skip to content

Commit

Permalink
🔍️ Add property key on multiplePromotions #2042
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia committed Jan 9, 2024
1 parent 6134b56 commit f0c4d3a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,20 +102,20 @@ const MultiplePromotions = ({
case 'news':
case 'localNews':
return (
<StyledBackground>
<StyledBackground key={data.id}>
<StyledNewsCard data={data as CardData} key={data.id} />
</StyledBackground>
)
case 'topics':
case 'magazine':
return (
<StyledBackground>
<StyledBackground key={data.id}>
<StyledTopicPageCard data={data as CardData} key={data.id} />
</StyledBackground>
)
case 'people':
return (
<StyledBackground>
<StyledBackground key={data.id}>
<StyledPeopleCard data={data as PeopleCardData} hasSectionTitle={hasSectionTitle} key={data.id} />
</StyledBackground>
)
Expand Down

0 comments on commit f0c4d3a

Please sign in to comment.