From 66adb09bcc5477a8051809f2d372b4fcabba7210 Mon Sep 17 00:00:00 2001 From: WilliamRagstad Date: Fri, 16 Aug 2024 20:33:11 +0200 Subject: [PATCH] Use key --- src/components/FAQ.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/FAQ.jsx b/src/components/FAQ.jsx index d3563ec..8794a7f 100644 --- a/src/components/FAQ.jsx +++ b/src/components/FAQ.jsx @@ -80,7 +80,6 @@ export const FAQ = () => ( content={item.answer} key={`${item.question}-${item.answer}`} links={item.links} - defaultOpen={index === 0} /> ))} @@ -110,9 +109,8 @@ const FAQBox = ({ defaultOpen, title, content, links }) => {
Read more about:{" "} {links.map((link, index) => ( - <> + { {index < links.length - 1 && ( , )} - + ))}
)}