Skip to content

Commit ee21c69

Browse files
committed
fix: make keys identical
1 parent f9274c7 commit ee21c69

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/pages/Play/components/ValidTiles.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ export default function ValidTiles(props: ValidTilesProps) {
1919
}}
2020
>
2121
{keys.map((key) => (
22-
<>
22+
<div key={key}>
2323
<p
2424
style={{
2525
fontSize: "1.3rem",
2626
fontWeight: "500",
2727
}}
28-
key={key}
2928
>
3029
{key}{" "}
3130
</p>
@@ -34,10 +33,9 @@ export default function ValidTiles(props: ValidTilesProps) {
3433
display: "flex",
3534
listStyleType: "none",
3635
}}
37-
key={key}
3836
>
3937
{shortenedInfo.get(key)?.map((hai) => (
40-
<li key={String(hai)}>
38+
<li key={`${hai.kind} - ${hai.value}`}>
4139
<img
4240
src={`/hai/${hai.kind}_${hai.value}.png`}
4341
alt={`${hai.kind} ${hai.value}`}
@@ -47,7 +45,7 @@ export default function ValidTiles(props: ValidTilesProps) {
4745
</li>
4846
))}
4947
</ul>
50-
</>
48+
</div>
5149
))}
5250
</div>
5351
);

0 commit comments

Comments
 (0)