fixing flow and signout working with dropdown

This commit is contained in:
Arjun Patel
2022-01-14 15:57:48 -08:00
parent e7a22d54f3
commit b73edc1abd
2 changed files with 27 additions and 13 deletions
+4 -3
View File
@@ -10,6 +10,7 @@ import unfetch from "isomorphic-unfetch";
import { FaPeopleCarry, FaArrowRight, FaBullhorn } from "react-icons/fa";
import BackgroundLayout from "../../components/Layouts/BackgroundLayout";
import TeamService from "../../services/teamService";
import Loading from "../../components/Loading";
/**
* figure out where to take the user based on everything
@@ -68,13 +69,13 @@ function RouteHandler() {
console.log(error);
router.push("/teams/login");
}
})();
setLoading(false);
setLoading(false);
})();
}, [currUser]);
if (loading || !user) {
return <div></div>;
return <Loading />;
}
// not in a team yet, and have not created a team yet