From 5274987c0e2a03a85bf2bcfcff3e1c4a89a233b4 Mon Sep 17 00:00:00 2001 From: jakubabrzy Date: Tue, 19 Sep 2023 10:46:56 +0200 Subject: [PATCH] use id instead of summary --- src/components/Accordion/Item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Accordion/Item.tsx b/src/components/Accordion/Item.tsx index 64499f30..9bdf8705 100644 --- a/src/components/Accordion/Item.tsx +++ b/src/components/Accordion/Item.tsx @@ -31,7 +31,7 @@ const AccordionItem = ({ return; } - if (decodeURI(location.hash) === `#${summary}`) { + if (decodeURI(location.hash) === `#${id}`) { // Hash at the end disables ability to open automaticaly first FAQ item window.location.replace(`${location.pathname}#`); } else {