Spaces:
Sleeping
Sleeping
Upload client/src/pages/Dashboard.tsx with huggingface_hub
Browse files
client/src/pages/Dashboard.tsx
CHANGED
|
@@ -38,7 +38,8 @@ const Dashboard: React.FC = () => {
|
|
| 38 |
|
| 39 |
const getGreeting = () => {
|
| 40 |
if (!user) return '';
|
| 41 |
-
|
|
|
|
| 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 = () => {
|