diff --git a/themes/edx.org/lms/templates/dashboard.html b/themes/edx.org/lms/templates/dashboard.html index 485da327d91b..f0f40fd117e1 100644 --- a/themes/edx.org/lms/templates/dashboard.html +++ b/themes/edx.org/lms/templates/dashboard.html @@ -156,8 +156,6 @@ from openedx.core.djangoapps.enrollments.api import serialize_enrollments serialized_course_enrollments = serialize_enrollments(course_enrollments) demographics_enabled = getattr(settings, 'ENABLE_DEMOGRAPHICS_COLLECTION', False) - demographics_modal_enabled = getattr(settings, 'ENABLE_DEMOGRAPHICS_MODAL', False) - show_user_demographics_fields = show_user_demographics( user, enrollments=serialized_course_enrollments, @@ -168,41 +166,10 @@ show_user_demographics_fields and show_call_to_action_for_user(user) ) - display_demographics_modal = ( - demographics_enabled and - demographics_modal_enabled and - show_user_demographics_fields - ) account_mfe_url = getattr(settings, 'ACCOUNT_MICROFRONTEND_URL', '') or '' bannerLogoPath = staticfiles_storage.url('edx.org/images/quote_prompt.png') %> - % if display_demographics_banner and not display_demographics_modal: - - - - % endif - % if display_demographics_modal and display_demographics_banner: + % if display_demographics_banner: ${static.renderReact( component="DemographicsCollectionBanner", id="dashboard-demographics-collection-banner",