Skip to content

Commit

Permalink
fix: key property for elements in iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ndratov committed Sep 28, 2024
1 parent 1103036 commit 3a2d05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client/src/pages/Leaderboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const Leaderboard = () => {
tagName="h1"
className="leaderboard-page__title"></PageTitle>
<div className="records">
{Array.from({ length: RECORD_ITEMS_COUNT }).map(_ => {
{Array.from({ length: RECORD_ITEMS_COUNT }).map((_, index) => {
return (
<div className="records__item-wrapper">
<div key={index} className="records__item-wrapper">
<div className="records__item record-item">
<div className="record-item__user-info user-info">
<img
Expand Down

0 comments on commit 3a2d05a

Please sign in to comment.