fix: invite team page

feat/dashboard
Arik Chakma 3 months ago
parent 09fb526896
commit a57f7e7a30
  1. 9
      src/components/Dashboard/DashboardPage.tsx

@ -80,7 +80,14 @@ export function DashboardPage(props: DashboardPageProps) {
key={team._id} key={team._id}
label={team.name} label={team.name}
isActive={team._id === selectedTeamId} isActive={team._id === selectedTeamId}
onClick={() => setSelectedTeamId(team._id)} onClick={() => {
if (team.status === 'invited') {
window.location.href = `/respond-invite?i=${team.memberId}`;
return;
}
setSelectedTeamId(team._id);
}}
avatar={avatarUrl} avatar={avatarUrl}
/> />
); );

Loading…
Cancel
Save