mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-01-26 05:22:28 +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
|
disqusShortname
|
||||||
} = data.site.siteMetadata;
|
} = data.site.siteMetadata;
|
||||||
|
|
||||||
|
if (!disqusShortname) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ReactDisqusComments
|
<ReactDisqusComments
|
||||||
shortname={disqusShortname}
|
shortname={disqusShortname}
|
||||||
|
Loading…
Reference in New Issue
Block a user