mitodl / mitxonline

BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

4111: dashboard crashes when user profile is incomplete #2206

Closed collinpreston closed 3 months ago

collinpreston commented 3 months ago

What are the relevant tickets?

https://github.com/mitodl/hq/issues/4111

Description (What does it do?)

Adds a check on a parameter to ensure that the front-end does not error when the parameter is undefined.

How can this be tested?

  1. Create a user in MITx Online that does not have any profile information specified. I used my administrator user created from the management command.
  2. Enroll the user from step 1 into a course.
  3. Visit the dashboard for the user from step 1.
  4. Click on the course title for the course from step 2.
  5. Verify that you are presented with a modal containing a form for collecting additional profile information.
  6. Verify that no console errors are occurring in the browser.