Skip to content

"Invalid Date" appears in "Unused Enrollment Codes" UI in certain conditions. #2512

@mbertrand

Description

@mbertrand

Steps to Reproduce

Create a course run with a null start date.
Create a coupon for a course run (the same above or another), give the CouponPaymentVersion a null expiration date.
Assign the coupon code to one of your users.
Log in as that user.
Go to https://xpro.mit.edu/dashboard/

Expected Behavior

Under the "Unredeemed Enrollment Code(s)" section, you should see appropriate text (TBD) for "Use code by ____" and "Start Date: ____"

Actual Behavior

"Use code by Invalid Date"
"Start Date: Invalid Date"

Screenshot or Screencast

Screen Shot 2022-12-05 at 4 17 49 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions