mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-24 20:42:23 +01:00
Fix error when disqus shortname is empty
This commit is contained in:
parent
2fdbab66b6
commit
dd96057494
@ -8,6 +8,10 @@ export const PureComments = ({ data, postTitle, postSlug }) => {
|
||||
disqusShortname
|
||||
} = data.site.siteMetadata;
|
||||
|
||||
if (!disqusShortname) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<ReactDisqusComments
|
||||
shortname={disqusShortname}
|
||||
|
Loading…
Reference in New Issue
Block a user