Commit 946e2750 authored by Chunchi Che's avatar Chunchi Che

fix small

parent 409b9de6
...@@ -38,9 +38,10 @@ const CardModal = () => { ...@@ -38,9 +38,10 @@ const CardModal = () => {
<Meta title={name} /> <Meta title={name} />
<p>{desc}</p> <p>{desc}</p>
</Card> </Card>
{interactivies.map((interactive) => { {interactivies.map((interactive, idx) => {
return ( return (
<Button <Button
key={idx}
onClick={() => { onClick={() => {
sendSelectIdleCmdResponse(interactive.response); sendSelectIdleCmdResponse(interactive.response);
dispatch(setCardModalIsOpen(false)); dispatch(setCardModalIsOpen(false));
......
...@@ -19,7 +19,7 @@ const DuelHands = () => { ...@@ -19,7 +19,7 @@ const DuelHands = () => {
return ( return (
<> <>
{hands.map((hand, idx) => { {hands.map((hand, idx) => {
return <DuelHand state={hand} idx={idx} />; return <DuelHand state={hand} idx={idx} key={idx} />;
})} })}
</> </>
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment