From ba5244bc3b2ecf865ce71634ab91f8e3666da11b Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 28 Jan 2023 02:49:14 -0800 Subject: [PATCH] Don't show header title on non-party pages --- components/Header/index.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/components/Header/index.tsx b/components/Header/index.tsx index b94b7d60..6502f89f 100644 --- a/components/Header/index.tsx +++ b/components/Header/index.tsx @@ -172,15 +172,11 @@ const Header = () => { } } else if (['weapons', 'summons', 'characters', 'new', ''].includes(path)) { title = t('new_party') - } else if ( - ['about', 'updates', 'roadmap', 'saved', 'teams'].includes(path) - ) { - title = capitalizeFirstLetter(path) } else { - title = path + title = '' } - return ( + return title !== '' ? (