fix: show Order History link only when MFE is configured (#37354)
This commit is contained in:
@@ -23,7 +23,7 @@ displayname = get_enterprise_learner_generic_name(request) or username
|
||||
enterprise_customer_portal = get_enterprise_learner_portal(request)
|
||||
## Enterprises with the learner portal enabled should not show order history, as it does
|
||||
## not apply to the learner's method of purchasing content.
|
||||
should_show_order_history = not enterprise_customer_portal
|
||||
should_show_order_history = not enterprise_customer_portal and settings.ORDER_HISTORY_MICROFRONTEND_URL
|
||||
%>
|
||||
|
||||
<div class="nav-item hidden-mobile">
|
||||
|
||||
Reference in New Issue
Block a user