Skip to content

Commit

Permalink
fixes keys on stars in rating card
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-figma committed Jun 14, 2024
1 parent fb9ab6d commit a0be236
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compositions/Cards/Cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ export function ReviewCard({
}: ReviewCardProps) {
return (
<Card {...props} direction="vertical" variant="stroke">
<Flex gap="100">{new Array(stars).fill(<IconStar />)}</Flex>
<Flex gap="100">
{new Array(stars).fill(0).map((_, i) => (
<IconStar key={i} />
))}
</Flex>
<Flex direction="column" gap="100">
<TextHeading>{title}</TextHeading>
<TextSmall>{body}</TextSmall>
Expand Down

0 comments on commit a0be236

Please sign in to comment.