diff --git a/src/course-home/outline-tab/widgets/WeeklyLearningGoalCard.jsx b/src/course-home/outline-tab/widgets/WeeklyLearningGoalCard.jsx index d5dafcf1..a619c5ca 100644 --- a/src/course-home/outline-tab/widgets/WeeklyLearningGoalCard.jsx +++ b/src/course-home/outline-tab/widgets/WeeklyLearningGoalCard.jsx @@ -30,8 +30,11 @@ function WeeklyLearningGoalCard({ Object.freeze(weeklyLearningGoalLevels); function handleSelect(days) { + // Set the subscription button if this is the first time selecting a goal + const selectReminders = daysPerWeekGoal === null ? true : isGetReminderSelected; + setGetReminderSelected(selectReminders); setDaysPerWeekGoal(days); - saveWeeklyCourseGoal(courseId, days, isGetReminderSelected); + saveWeeklyCourseGoal(courseId, days, selectReminders); } function handleSubscribeToReminders(event) { @@ -50,8 +53,24 @@ function WeeklyLearningGoalCard({ {intl.formatMessage(messages.setWeeklyGoalDetail)} -
-
+
+
-
+ +
-
+ +
+
- {/* This is supposed to fill with gray in the bottom of the card */} {isGetReminderSelected && (