You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something appears to be trying to format a blank date, and it results in "Invalid Date" being sent as part of the request payload. Because of this, saving fails - "Invalid Date" is, unsurprisingly, an invalid date and it fails the validation in the serializer.
This was tested with Firefox on macOS (113.0.1) but this is unlikely to be browser specific.
Steps to Reproduce
Open the staff dashboard and navigate to the Discounts area.
Edit a discount (ideally one that has an expiration date but not an activation date set).
Attempt to save the discount. Do not change the activation date.
Expected Behavior
The discount code saves successfully.
Actual Behavior
You get a 400 error, and the discount is not saved.
Something appears to be trying to format a blank date, and it results in "Invalid Date" being sent as part of the request payload. Because of this, saving fails - "Invalid Date" is, unsurprisingly, an invalid date and it fails the validation in the serializer.
This was tested with Firefox on macOS (113.0.1) but this is unlikely to be browser specific.
Steps to Reproduce
Expected Behavior
The discount code saves successfully.
Actual Behavior
You get a 400 error, and the discount is not saved.
Related Issues
First encountered in https://github.com/mitodl/hq/issues/1498
Screenshot or Screencast
The text was updated successfully, but these errors were encountered: