Skip to content

Commit

Permalink
fix(landing): add key to announcement timeline items
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Jan 3, 2024
1 parent 8d20678 commit d01da6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/announcement-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ const AnnouncementCard = ({ announcements }: Props) => {
<Box sx={styles.timelineContainer}>
{announcements.map((announcement, index) => {
return index === 0 ? (
<AnnouncementTimelineItem {...{ ...announcement, first: true }} />
<AnnouncementTimelineItem
key={index}
{...{ ...announcement, first: true }}
/>
) : (
<AnnouncementTimelineItem {...announcement} />
<AnnouncementTimelineItem key={index} {...announcement} />
)
})}
</Box>
Expand Down

0 comments on commit d01da6a

Please sign in to comment.