diff --git a/lms/static/js/learner_dashboard/views/program_details_view.js b/lms/static/js/learner_dashboard/views/program_details_view.js index 365493afef..1ff64f81b1 100644 --- a/lms/static/js/learner_dashboard/views/program_details_view.js +++ b/lms/static/js/learner_dashboard/views/program_details_view.js @@ -200,6 +200,7 @@ class ProgramDetailsView extends Backbone.View { )); const programPurchasedWithoutSubscription = ( this.subscriptionModel.get('subscriptionState') !== 'active' + && this.subscriptionModel.get('subscriptionState') !== 'inactive' && !isSomeCoursePurchasable && this.remainingCourseCollection.length === 0 ); diff --git a/lms/templates/learner_dashboard/program_details_tab_view.underscore b/lms/templates/learner_dashboard/program_details_tab_view.underscore index 1a970ae3bb..a9f721a891 100644 --- a/lms/templates/learner_dashboard/program_details_tab_view.underscore +++ b/lms/templates/learner_dashboard/program_details_tab_view.underscore @@ -48,7 +48,11 @@ <% } %> - <% if (isSubscriptionEligible) { %> + <% if (isSubscriptionEligible && ( + completedCount !== totalCount + || subscriptionState === 'active' + ) + ) { %>
<% } %> - <% if (isSubscriptionEligible) { %> + <% if (isSubscriptionEligible && ( + completedCount !== totalCount + || subscriptionState === 'active' + ) + ) { %>