diff --git a/frontend/src/basic/BookPage/index.tsx b/frontend/src/basic/BookPage/index.tsx index 1aa10063..e8c5993d 100644 --- a/frontend/src/basic/BookPage/index.tsx +++ b/frontend/src/basic/BookPage/index.tsx @@ -13,7 +13,7 @@ import { BarChart, FormatListBulleted } from '@mui/icons-material'; import { AppContext, UseAppStoreType } from '../../contexts/AppContext'; const BookPage = (): JSX.Element => { - const { robot, fetchBook, windowSize, book, setDelay, setOrder } = + const { robot, fetchBook, windowSize, setDelay, setOrder } = useContext(AppContext); const { t } = useTranslation(); const navigate = useNavigate(); @@ -82,7 +82,6 @@ const BookPage = (): JSX.Element => { { - setPage('order'); navigate('/order/' + id); }} />