1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

fix: welcome message with no name (#8588)

This commit is contained in:
Mateusz Kwasniewski 2024-10-30 10:11:10 +01:00 committed by GitHub
parent 5f67dcefcd
commit c1dcbde8d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();