bugfix/#741 - fix socialImageUrl

This commit is contained in:
alxshelepenok
2020-09-10 00:53:50 +03:00
parent c785820b0d
commit f0c22e3583
3 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ const Layout = ({
socialImage
}: Props) => {
const { author, url } = useSiteMetadata();
const metaImage = socialImage != null ? socialImage : author.photo;
const metaImage = socialImage !== null ? socialImage : author.photo;
const metaImageUrl = url + metaImage;
return (