diff --git a/themes/heo/components/ArticleCopyright.js b/themes/heo/components/ArticleCopyright.js index 4664573c..78500ddf 100644 --- a/themes/heo/components/ArticleCopyright.js +++ b/themes/heo/components/ArticleCopyright.js @@ -6,9 +6,6 @@ import { useEffect, useState } from 'react' import CONFIG from '../config' export default function ArticleCopyright () { - if (!CONFIG.ARTICLE_COPYRIGHT) { - return <> - } const router = useRouter() const [path, setPath] = useState(BLOG.LINK + router.asPath) useEffect(() => { @@ -16,6 +13,11 @@ export default function ArticleCopyright () { }) const { locale } = useGlobal() + + if (!CONFIG.ARTICLE_COPYRIGHT) { + return <> + } + return (
- ); + ) }