Skip to content

Commit

Permalink
Update logic to show notice
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 committed Dec 6, 2023
1 parent bfdcdb5 commit b1b0d13
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/js/admin/first-course-creation-notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ export const handleFirstCourseCreationHelperNotice = () => {
// If the notice hasn't been created, and the course outline block hasn't been created, and the first course notice hasn't been dismissed, and there are no published lessons in the outline, create the notice.
if (
! noticeCreated &&
! hasOutlineBlock() &&
! isFirstCourseNoticeDismissed &&
! hasPublishedLessonInOutline( [ hasOutlineBlock() ] )
! (
hasOutlineBlock() &&
hasPublishedLessonInOutline( [ hasOutlineBlock() ] )
)
) {
noticeCreated = true;
noticeRemoved = false;
Expand Down

0 comments on commit b1b0d13

Please sign in to comment.