diff --git a/src/components/Chronicles/ChroniclesList.tsx b/src/components/Chronicles/ChroniclesList.tsx index 47e40fc..6b299af 100644 --- a/src/components/Chronicles/ChroniclesList.tsx +++ b/src/components/Chronicles/ChroniclesList.tsx @@ -28,7 +28,9 @@ export const ChroniclesList = ({ currentSlug, title, }: Props): JSX.Element => { - const { state: isOpen, toggleState: toggleOpen } = useBoolean(false); + const { state: isOpen, toggleState: toggleOpen } = useBoolean( + chronicles.some((chronicle) => chronicle.attributes?.slug === currentSlug) + ); return (