Skip to content

Commit

Permalink
fix: 로그인 redirect 오류 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jikwan0327 committed Aug 13, 2023
1 parent f47bef9 commit d68533a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Main/MainFuction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MainFunction = () => {
const isTablet = useMediaQuery({ query: '(max-width: 1136px) and (min-width: 769px)' });
const navigate = useNavigate();
const [isLogin, setIsLogin] = useState(!!getCookies('access_token'));
const { data } = ApplyInfoStatus(isLogin);
// const { data } = ApplyInfoStatus(isLogin);

return (
<_Wrapper>
Expand All @@ -38,7 +38,6 @@ const MainFunction = () => {
입학 상담 문의: 042-886-8814
</Text>
<Button
disabled={data?.submitted}
color={authorityColor}
onClick={() => (window.location.href = 'https://apply.entrydsm.hs.kr')}
margin={['bottom', 20]}
Expand Down

0 comments on commit d68533a

Please sign in to comment.