diff --git a/src/components/topbar/TopBar.tsx b/src/components/topbar/TopBar.tsx index bf994c3..610852e 100644 --- a/src/components/topbar/TopBar.tsx +++ b/src/components/topbar/TopBar.tsx @@ -35,7 +35,7 @@ function TopBar({ profileDropState, toggleProfileDropState, toggleMenuState }: P const { data: notificationsCount } = useGetNotificationsCount(); const profileData = profile?.data; const isLoggedIn = isSuccess && profileData; - const fullName = profileData ? `${profileData.firstName} ${profileData.lastName}`.trim() : 'کاربر داناک'; + const fullName = profileData?.firstName ? `${profileData.firstName} ${profileData.lastName}`.trim() : `UDM-${profile?.data?.phone}`; const handleNotificationClick = (e: React.MouseEvent) => { e.preventDefault();