Fixed a bug
This commit is contained in:
parent
5edc2d7f27
commit
2aab536a94
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue