From c1dcbde8d9b3d35355786a176a904eaf8b9946cc Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 30 Oct 2024 10:11:10 +0100 Subject: [PATCH] fix: welcome message with no name (#8588) --- .../src/component/personalDashboard/PersonalDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/personalDashboard/PersonalDashboard.tsx b/frontend/src/component/personalDashboard/PersonalDashboard.tsx index 48dcf06e1707..afc6bbe74f0a 100644 --- a/frontend/src/component/personalDashboard/PersonalDashboard.tsx +++ b/frontend/src/component/personalDashboard/PersonalDashboard.tsx @@ -105,9 +105,9 @@ export const PersonalDashboard = () => { const { trackEvent } = usePlausibleTracker(); const { setSplashSeen } = useSplashApi(); const { splash } = useAuthSplash(); - const name = user?.name; + const name = user?.name || ''; - usePageTitle(`Dashboard: ${name}`); + usePageTitle(name ? `Dashboard: ${name}` : 'Dashboard'); const { personalDashboard, refetch: refetchDashboard } = usePersonalDashboard();