diff --git a/src/app/page.tsx b/src/app/page.tsx index 8bf748f9..06998956 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,7 @@ 'use client'; import { useEffect } from 'react'; import { redirect } from 'next/navigation'; -import { getItem, removeItem } from '@/lib/storage'; +import { getItem } from '@/lib/storage'; import { LAST_TEAM_CONFIG } from '@/lib/constants'; export default function RootPage() { @@ -10,11 +10,9 @@ export default function RootPage() { if (lastTeam) { redirect(`/teams/${lastTeam}/websites`); - } else { - removeItem(LAST_TEAM_CONFIG); - - redirect(`/websites`); } + + redirect(`/websites`); }, []); return null; diff --git a/src/components/input/NavButton.tsx b/src/components/input/NavButton.tsx index b57c2ecd..44496e22 100644 --- a/src/components/input/NavButton.tsx +++ b/src/components/input/NavButton.tsx @@ -93,7 +93,7 @@ export function NavButton({ showText = true }: TeamsButtonProps) { - + } label={user.username} />