fix: fix edge-case for completed courses in a subscription program (#32476)
This commit is contained in:
@@ -103,7 +103,11 @@
|
||||
) %>
|
||||
</span>
|
||||
</div>
|
||||
<% } else if (is_learner_eligible_for_one_click_purchase && (typeof is_mobile_only === 'undefined' || is_mobile_only === false)) { %>
|
||||
<% } else if (
|
||||
!isSubscriptionEligible
|
||||
&& is_learner_eligible_for_one_click_purchase
|
||||
&& (typeof is_mobile_only === 'undefined' || is_mobile_only === false)
|
||||
) { %>
|
||||
<a href="<%- completeProgramURL %>" class="btn-brand btn cta-primary upgrade-button complete-program" id="program_dashboard_course_upsell_all_button">
|
||||
<%- gettext('Upgrade All Remaining Courses (')%>
|
||||
<% if (discount_data.is_discounted) { %>
|
||||
|
||||
@@ -78,7 +78,11 @@
|
||||
) %>
|
||||
</span>
|
||||
</div>
|
||||
<% } else if (is_learner_eligible_for_one_click_purchase && (typeof is_mobile_only === 'undefined' || is_mobile_only === false)) { %>
|
||||
<% } else if (
|
||||
!isSubscriptionEligible
|
||||
&& is_learner_eligible_for_one_click_purchase
|
||||
&& (typeof is_mobile_only === 'undefined' || is_mobile_only === false)
|
||||
) { %>
|
||||
<a href="<%- completeProgramURL %>" class="btn-brand btn cta-primary upgrade-button complete-program" id="program_dashboard_course_upsell_all_button">
|
||||
<%- gettext('Upgrade All Remaining Courses (')%>
|
||||
<% if (discount_data.is_discounted) { %>
|
||||
|
||||
Reference in New Issue
Block a user