Skip to content

Commit

Permalink
fix: format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noa.santo committed Jan 29, 2024
1 parent fd4cf7c commit 6942ced
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/layout/seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ const SEO = ({
* The i18n object (languages, language, originalPath, defaultLanguage)
* is replaced with constants and locales data for building the alternate meta tag.
*/
const dataNode = locales.edges.find((e) => e.node.ns === 'translations')
?.node;
const dataNode = locales.edges.find(
(e) => e.node.ns === 'translations',
)?.node;
const t = JSON.parse(dataNode?.data || '{}');
const metaDescription = description || t['main.description'];
const typeOfSite = siteType || 'website';
Expand Down

0 comments on commit 6942ced

Please sign in to comment.