fix: show Order History link only when MFE is configured (#37354)

This commit is contained in:
Stanislav
2025-11-19 20:48:59 +02:00
committed by GitHub
parent 712123847e
commit 64528b6411

View File

@@ -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">