Skip to content

Commit

Permalink
Don't update marketing consent if it's not asked
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Dec 13, 2024
1 parent 4c01cc3 commit 18ec372
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const SelectCourseInstanceForm: React.FC<
backgroundQuestionAnswers: additionalQuestionAnswers,
})
}
if (getCourse.isSuccess) {
if (getCourse.isSuccess && getCourse.data?.ask_marketing_consent) {
await updateMarketingConsent(
getCourse.data.id,
getCourse.data.course_language_group_id,
Expand Down

0 comments on commit 18ec372

Please sign in to comment.