diff --git a/src/views/timetable/index.jsx b/src/views/timetable/index.jsx index f245f51..8a46e61 100644 --- a/src/views/timetable/index.jsx +++ b/src/views/timetable/index.jsx @@ -1,5 +1,4 @@ import React, { useEffect, useState } from 'react'; -import { Redirect } from 'react-router'; import { useRecoilValue } from 'recoil'; import { Box, Button, Container, makeStyles } from '@material-ui/core'; import { currentTimetableIndexState, timetableListState } from '@states/Timetable'; @@ -19,15 +18,9 @@ export default function Home() { const classes = useStyles(); useEffect(() => { - if (!localStorage.getItem('userID')) return; - fetchTimetables(); }, []); - if (!localStorage.getItem('userID')) { - return ; - } - return (