diff --git a/src/components/course/routes/ExternalCourseEnrollment.jsx b/src/components/course/routes/ExternalCourseEnrollment.jsx index 2f85378332..03e2d8ee9d 100644 --- a/src/components/course/routes/ExternalCourseEnrollment.jsx +++ b/src/components/course/routes/ExternalCourseEnrollment.jsx @@ -77,7 +77,7 @@ const ExternalCourseEnrollment = () => { // current date is outside the enrollment window of the run. if (userSubsidyApplicableToCourse.subsidyType === LEARNER_CREDIT_SUBSIDY_TYPE) { const canRedeemDataCourseRun = redeemabilityPerContentKey.find(r => r.contentKey === courseRunKey); - if (!canRedeemDataCourseRun?.canRedeem) { + if (!canRedeemDataCourseRun?.canRedeem && !canRedeemDataCourseRun?.hasSuccessfulRedemption) { return ; } } diff --git a/src/components/course/routes/tests/ExternalCourseEnrollment.test.jsx b/src/components/course/routes/tests/ExternalCourseEnrollment.test.jsx index 8dfa88bd27..451f8b9786 100644 --- a/src/components/course/routes/tests/ExternalCourseEnrollment.test.jsx +++ b/src/components/course/routes/tests/ExternalCourseEnrollment.test.jsx @@ -145,12 +145,21 @@ describe('ExternalCourseEnrollment', () => { }, LEARNER_CREDIT_SUBSIDY_TYPE, ], + // The auto-selected subsidy type is learner credit, and the specific requested run is already redeemed. + [ + { + contentKey: mockCourseRunKey, + hasSuccessfulRedemption: true, + canRedeem: false, + }, + LEARNER_CREDIT_SUBSIDY_TYPE, + ], // The specific run is not redeemable via LC, but that's okay because we're not using learner credit anyway. [ { contentKey: mockCourseRunKey, hasSuccessfulRedemption: false, - canRedeem: false, // Not redeemable!? + canRedeem: false, // Not redeemable }, LICENSE_SUBSIDY_TYPE, // Auto-selected subsidy type is not learner credit anyway, so allow the page to render. ], diff --git a/src/components/executive-education-2u/components/RegistrationSummaryCard.jsx b/src/components/executive-education-2u/components/RegistrationSummaryCard.jsx index 6cd0d878d7..437dc6b7d5 100644 --- a/src/components/executive-education-2u/components/RegistrationSummaryCard.jsx +++ b/src/components/executive-education-2u/components/RegistrationSummaryCard.jsx @@ -49,7 +49,7 @@ const RegistrationSummaryCard = ({ priceDetails }) => (
- ${priceDetails?.price ? `${String(0).padStart(priceDetails.price.toString().length, '0') }.00` : '0.00'} {priceDetails?.currency ? priceDetails.currency : CURRENCY_USD} + {priceDetails?.price ? `$${numberWithPrecision(0)} ${priceDetails?.currency ? priceDetails.currency : CURRENCY_USD}` : '-'}