From b1b0d13894abfa14a656488fba4da5ad84f2a8a1 Mon Sep 17 00:00:00 2001 From: Imran Hossain Date: Wed, 6 Dec 2023 23:39:30 +0600 Subject: [PATCH] Update logic to show notice --- assets/js/admin/first-course-creation-notice.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/js/admin/first-course-creation-notice.js b/assets/js/admin/first-course-creation-notice.js index 12edadfd8d..fb1289ad0f 100644 --- a/assets/js/admin/first-course-creation-notice.js +++ b/assets/js/admin/first-course-creation-notice.js @@ -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;