From 89e5c29d806f6e320b55670f26936b5ba3dae0c4 Mon Sep 17 00:00:00 2001 From: Ariful Alam Date: Tue, 25 Oct 2022 18:07:06 +0600 Subject: [PATCH] Handle empty name in meta tags --- src/components/head-tag-editor/index.jsx | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/components/head-tag-editor/index.jsx b/src/components/head-tag-editor/index.jsx index f7dd12d..36d4264 100644 --- a/src/components/head-tag-editor/index.jsx +++ b/src/components/head-tag-editor/index.jsx @@ -22,7 +22,7 @@ const HeadTagEditor = ({ profile, theme, googleAnalytics, social }) => { gtag('config', '${googleAnalytics.id}');`} )} - Portfolio of {profile.name} + Portfolio{profile.name && ` of ${profile.name}`} { - + - + - +