Fallback if no comment present

This commit is contained in:
Agam More 2022-02-25 23:15:52 -05:00 committed by GitHub
parent f2472ec4b0
commit 4d2611f8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ const DisqusComponent = dynamic(
const Comments = ({ frontMatter }) => {
let term
if (!siteMetadata.comment) return <></>
switch (
siteMetadata.comment.giscusConfig.mapping ||
siteMetadata.comment.utterancesConfig.issueTerm