Skip to content

Commit

Permalink
fix: Check events is not null in stage timer modal (#10720)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch authored Jan 23, 2025
1 parent 2a9aef0 commit 8b581f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const isNotificationActive = (integration: {
const {auth} = integration
if (!auth?.isActive) return false
const {events} = auth
if (!events) return false
return (
events.includes('MEETING_STAGE_TIME_LIMIT_START') ||
events.includes('MEETING_STAGE_TIME_LIMIT_END')
Expand Down Expand Up @@ -116,7 +117,6 @@ const StageTimerModalEndTimeSlackToggle = (props: Props) => {
const {onError, onCompleted, submitMutation, error, submitting} = mutationProps
const isMattermostActive = isNotificationActive(mattermost)
const isMSTeamsActive = isNotificationActive(msTeams)
console.log('GEORG', slack, isMattermostActive, isMSTeamsActive)
const noActiveIntegrations = !slack?.isActive && !isMattermostActive && !isMSTeamsActive

const onClick = () => {
Expand Down

0 comments on commit 8b581f4

Please sign in to comment.