Skip to content

Commit

Permalink
fix: Making sure email setting modal opens when emailSettingsModal.op…
Browse files Browse the repository at this point in the history
…en is true (#1136)
  • Loading branch information
zwidekalanga authored Aug 12, 2024
1 parent 10362ba commit 8d4a976
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
EXECUTIVE_EDUCATION_COURSE_MODES,
useEnterpriseCustomer,
} from '../../../../app/data';
import { isCourseEnded, isTodayWithinDateThreshold } from '../../../../../utils/common';
import { isCourseEnded, isDefinedAndNotNull, isTodayWithinDateThreshold } from '../../../../../utils/common';

const messages = defineMessages({
statusBadgeLabelInProgress: {
Expand Down Expand Up @@ -342,7 +342,7 @@ const BaseCourseCard = ({
};

const renderEmailSettingsModal = () => {
if (!hasEmailsEnabled) {
if (!isDefinedAndNotNull(hasEmailsEnabled)) {
return null;
}
return (
Expand Down

0 comments on commit 8d4a976

Please sign in to comment.