mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
TEAM PAGE WORKS WITH 1 ERROR WOOOOOOOO
This commit is contained in:
1 parent
68e9af2d83
commit
6b87e0f7fb
5 files changed
+284
-234
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user