Fixed a bug

This commit is contained in:
DrMint 2022-07-18 02:09:29 +02:00
parent 5edc2d7f27
commit 2aab536a94
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ export const ChroniclesList = ({
currentSlug, currentSlug,
title, title,
}: Props): JSX.Element => { }: Props): JSX.Element => {
const { state: isOpen, toggleState: toggleOpen } = useBoolean(false); const { state: isOpen, toggleState: toggleOpen } = useBoolean(
chronicles.some((chronicle) => chronicle.attributes?.slug === currentSlug)
);
return ( return (
<div> <div>