diff --git a/pages/[username].tsx b/pages/[username].tsx index 96d4b88e..9442349e 100644 --- a/pages/[username].tsx +++ b/pages/[username].tsx @@ -21,7 +21,8 @@ const ProfileRoute: React.FC = () => { }) useEffect(() => { - fetchProfile(username as string) + if (username) + fetchProfile(username as string) }, [username]) async function fetchProfile(username: string) {