Skip to content

Commit 0523f69

Browse files
RichDom2185Copilot
andauthored
Update src/pages/academy/Academy.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 7dcb157 commit 0523f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/academy/Academy.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CourseSelectingAcademy: React.FC = () => {
3636
const dispatch = useDispatch();
3737
const navigate = useNavigate();
3838
const { courseId, enableExamMode, role } = useTypedSelector(state => state.session);
39-
const applyEnableExamMode = enableExamMode && role == Role.Student;
39+
const applyEnableExamMode = enableExamMode && role === Role.Student;
4040
const { courseId: routeCourseIdStr } = useParams<{ courseId?: string }>();
4141
const routeCourseId = routeCourseIdStr != null ? parseInt(routeCourseIdStr, 10) : undefined;
4242

0 commit comments

Comments
 (0)