diff --git a/src/components/Dashboard/DashboardPage.tsx b/src/components/Dashboard/DashboardPage.tsx index 9f3ca6a08..d1e524cb5 100644 --- a/src/components/Dashboard/DashboardPage.tsx +++ b/src/components/Dashboard/DashboardPage.tsx @@ -80,14 +80,15 @@ export function DashboardPage(props: DashboardPageProps) { key={team._id} label={team.name} isActive={team._id === selectedTeamId} - onClick={() => { - if (team.status === 'invited') { - window.location.href = `/respond-invite?i=${team.memberId}`; - return; - } - - setSelectedTeamId(team._id); - }} + {...(team.status === 'invited' + ? { + href: `/respond-invite?i=${team.memberId}`, + } + : { + onClick: () => { + setSelectedTeamId(team._id); + }, + })} avatar={avatarUrl} /> ); diff --git a/src/components/Dashboard/PersonalDashboard.tsx b/src/components/Dashboard/PersonalDashboard.tsx index 1276e6396..ce59306a2 100644 --- a/src/components/Dashboard/PersonalDashboard.tsx +++ b/src/components/Dashboard/PersonalDashboard.tsx @@ -240,6 +240,22 @@ export function PersonalDashboard(props: PersonalDashboardProps) { })} )} + {!isLoading && enrichedProjects.length === 0 && ( +
+ No projects found. + + Start  + + Backend Projects + + . + +
+ )}

Role Based Roadmaps