Removes usage of nullish coalescing operator

This commit is contained in:
Alicia Sykes
2022-05-19 13:19:13 +01:00
parent 7e547e7463
commit 00b872e671
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ const getStartingComponent = () => {
/* Returns the meta tags for each route */
const makeMetaTags = (defaultTitle) => ({
title: pageInfo?.title || defaultTitle,
title: pageInfo && pageInfo.title ? pageInfo.title : defaultTitle,
metaTags: metaTagData,
});