Course with a failed status are shown as pending on the user profile page.
Check the status of failed course on the user profile page.
Needs review
3.1
Code