Skip to content

Commit 4d2611f

Browse files
authored
Fallback if no comment present
1 parent f2472ec commit 4d2611f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/comments/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const DisqusComponent = dynamic(
2222

2323
const Comments = ({ frontMatter }) => {
2424
let term
25+
if (!siteMetadata.comment) return <></>
2526
switch (
2627
siteMetadata.comment.giscusConfig.mapping ||
2728
siteMetadata.comment.utterancesConfig.issueTerm

0 commit comments

Comments
 (0)