Skip to content

Commit

Permalink
Enrollment banner use the same name as dashboard (#2494)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-at-mit authored Dec 17, 2024
1 parent 0e7d4d3 commit 6c84eb7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion courses/views/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def respond(data, status=True): # noqa: FBT002
resp = respond(reverse("user-dashboard"))
cookie_value = {
"type": USER_MSG_TYPE_ENROLLED,
"run": run.title,
"run": run.course.title,
}

# Check for an existing fulfilled order prior, otherwise get or create a PendingOrder.
Expand Down
2 changes: 1 addition & 1 deletion courses/views/v1/views_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def test_create_enrollments(mocker, user_client, api_request, product_exists):
assert resp.cookies[USER_MSG_COOKIE_NAME].value == encode_json_cookie_value(
{
"type": USER_MSG_TYPE_ENROLLED,
"run": run.title,
"run": run.course.title,
}
)
patched_create_enrollments.assert_called_once()
Expand Down

0 comments on commit 6c84eb7

Please sign in to comment.