Skip to content

Commit

Permalink
Merge pull request #63 from DSM-Repo/refactor
Browse files Browse the repository at this point in the history
fix: 배포가 안 돼...
  • Loading branch information
six-standard authored Sep 9, 2024
2 parents ad7d2b9 + 254001d commit de720ec
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/main/src/Pages/Landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ export const Landing = () => {
};
}, [setOpen]);

const { getRole } = useAuth();
useEffect(() => {
const role = getRole();
if (role === "student") {
window.location.replace(process.env.VITE_APP_URL_STUDENT as string);
} else if (role === "teacher") {
window.location.replace(process.env.VITE_APP_URL_TEACHER as string);
}
}, []);
// const { getRole } = useAuth();
// useEffect(() => {
// const role = getRole();
// if (role === "student") {
// window.location.replace(process.env.VITE_APP_URL_STUDENT as string);
// } else if (role === "teacher") {
// window.location.replace(process.env.VITE_APP_URL_TEACHER as string);
// }
// }, []);

return (
<div className="relative col-flex items-center">
Expand Down

0 comments on commit de720ec

Please sign in to comment.