Skip to content

Commit

Permalink
Merge pull request #1651 from JennGuz/cohort_name_in_liveClass
Browse files Browse the repository at this point in the history
Cohort name in live class
  • Loading branch information
tommygonzaleza authored Oct 24, 2024
2 parents f2175ad + f3c324c commit a09a2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/components/LiveEvent/MainEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function MainEvent({
const liveEndsAtDate = new Date(event?.ended_at || event?.ending_at);

const isTeacher = cohorts.some(({ cohort, role }) => cohort.slug === event.cohort?.slug && ['TEACHER', 'ASSISTANT'].includes(role));
const joinMessage = () => (isTeacher ? t('start-class') : t('join-class'));
const joinMessage = () => (isTeacher ? t('start-class') : event?.cohort?.name);

return (
<>
Expand Down

0 comments on commit a09a2ab

Please sign in to comment.