Skip to content

Commit bb82c67

Browse files
committedJul 2, 2024··
fix: remove array index from keys
1 parent 0035cd3 commit bb82c67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎web/src/components/Popup/MiniGuides/JurorLevels.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const LeftContent: React.FC<{ currentPage: number }> = ({ currentPage }) => {
100100
<Title>{title}</Title>
101101
<ParagraphsContainer>
102102
{paragraphs.map((paragraph, index) => (
103-
<label key={index}>{paragraph}</label>
103+
<label key={paragraph}>{paragraph}</label>
104104
))}
105105
</ParagraphsContainer>
106106
</LeftContentContainer>

‎web/src/components/Popup/MiniGuides/PageContentsTemplate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const extractGuideName = (linkText) => linkText.split(". ")[1];
5454

5555
const processNewLineInParagraph = (paragraph: string) => {
5656
return paragraph.split("\n").map((text, index) => (
57-
<React.Fragment key={index}>
57+
<React.Fragment key={text}>
5858
{index > 0 && <br />}
5959
{text}
6060
</React.Fragment>

0 commit comments

Comments
 (0)
Please sign in to comment.