Skip to content

Commit 66adb09

Browse files
Use key
1 parent e2ca89e commit 66adb09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/FAQ.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export const FAQ = () => (
8080
content={item.answer}
8181
key={`${item.question}-${item.answer}`}
8282
links={item.links}
83-
defaultOpen={index === 0}
8483
/>
8584
</div>
8685
))}
@@ -110,9 +109,8 @@ const FAQBox = ({ defaultOpen, title, content, links }) => {
110109
<div className="mt-4">
111110
Read more about:{" "}
112111
{links.map((link, index) => (
113-
<>
112+
<span key={`${link}-${index}`}>
114113
<a
115-
key={`${link}-${index}`}
116114
href={link.url}
117115
target="_blank"
118116
className="text-primaryText hover:underline"
@@ -122,7 +120,7 @@ const FAQBox = ({ defaultOpen, title, content, links }) => {
122120
{index < links.length - 1 && (
123121
<span className="mr-2">,</span>
124122
)}
125-
</>
123+
</span>
126124
))}
127125
</div>
128126
)}

0 commit comments

Comments
 (0)