Skip to content

Commit

Permalink
🐛 : map함수에 key를 추가함
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongbbn committed Nov 25, 2021
1 parent 75865b8 commit 2c6a4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front-end/src/components/InfiniteScroll/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const drawRecent = (list: Array<any>) => {
return (
<>
{list.map((value) => (
<div className="recent__list" key={value.game_id}>
<div className="recent__list" key={value.game_date}>
<div>{value.game_date.slice(0, 10)}</div>
<div>{value.game_mode === 'normal' ? '일반전' : '1 vs 1'}</div>
<div>{value.ranking}</div>
Expand Down

0 comments on commit 2c6a4e8

Please sign in to comment.