TEAM PAGE WORKS WITH 1 ERROR WOOOOOOOO

This commit is contained in:
bobbert committed 2025-03-12 19:56:19 +00:00
1 parent 68e9af2d83
commit 6b87e0f7fb
5 files changed
+284 -234

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ export default function TeamSelection() {
useEffect(() => {
if (status === "authenticated") {
if (session.user.teamId) {
router.push(`/team/${session.user.teamId}`);
window.location.href = `/${session.user.teamId}`;
} else {
setIsLoading(false);
}
@@ -41,7 +41,7 @@ export default function TeamSelection() {
throw new Error(data.error || "Failed to join team");
}
router.push(`/team/${data.teamId}`);
window.location.href = `/${data.teamId}`;
} catch (err) {
setError(err.message);
setIsLoading(false);