Don't query until we have a username

This commit is contained in:
Justin Edmund 2022-02-28 13:15:14 -08:00
parent bcccfb409a
commit 26fa33c4a7

View file

@ -21,6 +21,7 @@ const ProfileRoute: React.FC = () => {
}) })
useEffect(() => { useEffect(() => {
if (username)
fetchProfile(username as string) fetchProfile(username as string)
}, [username]) }, [username])