diff --git a/src/components/course/data/courseLoader.ts b/src/components/course/data/courseLoader.ts index ba0eda2a7a..b9c4ec77f5 100644 --- a/src/components/course/data/courseLoader.ts +++ b/src/components/course/data/courseLoader.ts @@ -134,7 +134,7 @@ const makeCourseLoader: Types.MakeRouteLoaderFunctionWithQueryClient = function hasCurrentEnterpriseOffers, }); const isCourseAssigned = redeemableLearnerCreditPolicies.learnerContentAssignments.allocatedAssignments.some( - (assignment) => assignment.contentKey === courseKey, + (assignment) => [assignment.contentKey, assignment.parentContentKey].includes(courseKey), ); // If learner is an assignment-only learner and is not assigned to the currently // viewed course, redirect to the Dashboard page route.