Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit fba80e6

Browse files
HasithDeAlwisMFarabi619
authored andcommitted
fix(portal/dashboard): preferred display name not appearing
1 parent 519a8ad commit fba80e6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

libs/portal/pages/index/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ import handshake from '@cuhacking/shared/assets/icons/general/handshake-white-1.
1212
import mountain from '@cuhacking/shared/assets/icons/general/mountain-white-1.svg'
1313

1414
const constants = {
15-
user: {
16-
name: 'Saim',
17-
},
1815
hackathonDate: new Date(2025, 2, 14),
1916
hackathonApplicationStatus: UserHackathonApplicationStatus.complete,
2017
stats: [
@@ -55,9 +52,9 @@ export function Home(
5552
* { user: User } */
5653
) {
5754
return (
58-
<Layout user={user}>
55+
<Layout isCompleteProfile={!!user.emergencyContactFullName}>
5956
<div className="flex flex-col p-4 sm:pt-10 gap-5 md:gap-10 min-h-screen">
60-
<Banner name={user.displayName} />
57+
<Banner name={user.preferredDisplayName} />
6158

6259
<div className="grid gap-4 sm:grid-cols-4 lg:grid-cols-6 lg:grid-row-4 min-h-[70vh]">
6360

0 commit comments

Comments
 (0)