We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d2611f commit e27ad36Copy full SHA for e27ad36
components/comments/index.js
@@ -22,7 +22,8 @@ const DisqusComponent = dynamic(
22
23
const Comments = ({ frontMatter }) => {
24
let term
25
- if (!siteMetadata.comment) return <></>
+ const comment = siteMetadata?.comment
26
+ if (!comment || Object.keys(comment).length === 0) return <></>
27
switch (
28
siteMetadata.comment.giscusConfig.mapping ||
29
siteMetadata.comment.utterancesConfig.issueTerm
0 commit comments