Skip to content

Commit

Permalink
Merge pull request #163 from crux-bphc/fix-cms-enroll
Browse files Browse the repository at this point in the history
Fix CMS auto enroll
  • Loading branch information
soumitradev authored Jan 11, 2024
2 parents c73f762 + 704af71 commit 37d639f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/Cms.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ function Cms() {
},
});

if (userQueryResult.data?.id !== sectionsInTimetable.data?.authorId) {
if (
userQueryResult.data?.id !== undefined &&
sectionsInTimetable.data?.authorId !== undefined &&
userQueryResult.data?.id !== sectionsInTimetable.data?.authorId
) {
toast({
title: "Error",
description:
Expand Down

0 comments on commit 37d639f

Please sign in to comment.