From 3cb55b320ad02e1704a42fb2aa98fda6c3e1e80c Mon Sep 17 00:00:00 2001 From: Chris Deery <3932645+cdeery@users.noreply.github.com> Date: Fri, 17 Sep 2021 12:03:51 -0400 Subject: [PATCH] feat: [AA-906] Front end for Number of Days goal setting remove console.log calls --- .../widgets/WeeklyLearningGoal.jsx | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/course-home/outline-tab/widgets/WeeklyLearningGoal.jsx b/src/course-home/outline-tab/widgets/WeeklyLearningGoal.jsx index c4ffe0c9..0bc9c222 100644 --- a/src/course-home/outline-tab/widgets/WeeklyLearningGoal.jsx +++ b/src/course-home/outline-tab/widgets/WeeklyLearningGoal.jsx @@ -31,29 +31,14 @@ function WeeklyLearningGoal({ function handleSelect(days) { setDaysPerWeekGoal(days); - saveWeeklyCourseGoal(courseId, days, isGetReminderChecked).then((response) => { - const { data } = response; - const { - header, - message, - } = data; - // TODO: add Toast?, remove console.log - console.log(header, ':', message); - }); + saveWeeklyCourseGoal(courseId, days, isGetReminderChecked); + // TODO: add Toast? Or is that just for the previous feature because the UI disappears? } function handleSubscribeToReminders(event) { const isGetReminders = event.target.checked; setGetReminderChecked(isGetReminders); - saveWeeklyCourseGoal(courseId, daysPerWeekGoal, isGetReminders).then((response) => { - const { data } = response; - const { - header, - message, - } = data; - // TODO: add Toast?, remove console.log - console.log(header, ':', message); - }); + saveWeeklyCourseGoal(courseId, daysPerWeekGoal, isGetReminders); } const buttonRowStyle = 'row w-100 m-0 p-0 justify-content-around'; // 'row w-100 m-0 flex-grow-1 p-0 justify content-end'; const flagButtonStyle = 'col-auto col-md-12 col-xl-auto m-0 p-0 pb-md-3 pb-xl-0'; // 'col-auto flex-grow-1 p-0';