We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcb157 commit 0523f69Copy full SHA for 0523f69
src/pages/academy/Academy.tsx
@@ -36,7 +36,7 @@ const CourseSelectingAcademy: React.FC = () => {
36
const dispatch = useDispatch();
37
const navigate = useNavigate();
38
const { courseId, enableExamMode, role } = useTypedSelector(state => state.session);
39
- const applyEnableExamMode = enableExamMode && role == Role.Student;
+ const applyEnableExamMode = enableExamMode && role === Role.Student;
40
const { courseId: routeCourseIdStr } = useParams<{ courseId?: string }>();
41
const routeCourseId = routeCourseIdStr != null ? parseInt(routeCourseIdStr, 10) : undefined;
42
0 commit comments