Skip to content

Commit

Permalink
use id instead of summary
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubabrzy committed Sep 19, 2023
1 parent e39a951 commit 5274987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Accordion/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5274987

Please sign in to comment.