Skip to content

Commit

Permalink
Add missing keys (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltoder authored Jan 28, 2025
1 parent 40fbedb commit b8e56d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ChatCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ function ChatCards({ item, gameMode, startedAt }) {
</div>
<div className={classes.setCards}>
{setType === "Set" &&
cards.map((card) => <SetCard size="sm" value={card} />)}
cards.map((card) => <SetCard key={card} size="sm" value={card} />)}
{(setType === "UltraSet" || setType === "GhostSet") &&
Array.from(Array(3), (_, i) => (
<div className={classes.cardsColumn}>
<div key={i} className={classes.cardsColumn}>
<SetCard size="sm" value={cards[i * 2]} />
{cards[i * 2 + 1] && (
<SetCard size="sm" value={cards[i * 2 + 1]} />
Expand Down

0 comments on commit b8e56d9

Please sign in to comment.