File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { useDispatch } from 'react-redux';
55import { Navigate , Outlet , useNavigate , useParams } from 'react-router' ;
66import ResearchAgreementPrompt from 'src/commons/researchAgreementPrompt/ResearchAgreementPrompt' ;
77import Constants from 'src/commons/utils/Constants' ;
8- import { useSession , useTypedSelector } from 'src/commons/utils/Hooks' ;
8+ import { useSession } from 'src/commons/utils/Hooks' ;
99import classes from 'src/styles/Academy.module.scss' ;
1010
1111import SessionActions from '../../commons/application/actions/SessionActions' ;
@@ -34,10 +34,9 @@ const Academy: React.FC = () => {
3434const CourseSelectingAcademy : React . FC = ( ) => {
3535 const dispatch = useDispatch ( ) ;
3636 const navigate = useNavigate ( ) ;
37- const { courseId } = useSession ( ) ;
37+ const { courseId, enableExamMode } = useSession ( ) ;
3838 const { courseId : routeCourseIdStr } = useParams < { courseId ?: string } > ( ) ;
3939 const routeCourseId = routeCourseIdStr != null ? parseInt ( routeCourseIdStr , 10 ) : undefined ;
40- const enableExamMode = useTypedSelector ( state => state . session . enableExamMode ) ;
4140
4241 React . useEffect ( ( ) => {
4342 // Regex to handle case where routeCourseIdStr is not a number
You can’t perform that action at this time.
0 commit comments