Skip to content

Commit

Permalink
add validation
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavomm19 committed Dec 27, 2024
1 parent 3b20ffc commit f7eefb9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js_modules/Cohort/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ function Header() {
borderRadius="30px"
/>
)}
<StudentsModal isOpen={showStudentsModal} onClose={() => setShowStudentsModal(false)} />
{cohortSession && cohortSession.cohort_role !== 'STUDENT' && (
<StudentsModal isOpen={showStudentsModal} onClose={() => setShowStudentsModal(false)} />
)}
</Container>
);
}
Expand Down

0 comments on commit f7eefb9

Please sign in to comment.