linguabot commited on
Commit
dade7a8
·
verified ·
1 Parent(s): d36f5d3

Upload client/src/pages/Dashboard.tsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. client/src/pages/Dashboard.tsx +2 -1
client/src/pages/Dashboard.tsx CHANGED
@@ -38,7 +38,8 @@ const Dashboard: React.FC = () => {
38
 
39
  const getGreeting = () => {
40
  if (!user) return '';
41
- return isFirstLogin ? `Welcome, ${user.name}!` : `Welcome back, ${user.name}!`;
 
42
  };
43
 
44
  const getRoleDisplay = () => {
 
38
 
39
  const getGreeting = () => {
40
  if (!user) return '';
41
+ const nameToShow = (user as any).displayName || user.name;
42
+ return isFirstLogin ? `Welcome, ${nameToShow}!` : `Welcome back, ${nameToShow}!`;
43
  };
44
 
45
  const getRoleDisplay = () => {