Skip to content

Back-end responses used in front-end but error is undefined

In the two errors described below, the response from the back-end is used in the notification toast, but the back-end does not always provide a response. This causes 'undefined' to be printed in the cases described below.

NOTIFICATION TOASTS

DONE? CURRENT/OLD NEW PAGE SCREENSHOT (click to enlarge)
No "ErrorDid not upload file. undefined" "Error Did not upload file. Deadline has passed!" /student-dashboard/courses/xx/assignment/xxx/hand-in image
No "Error Did not upload file. undefined" "Error Did not upload file. You are not logged in!" This should be a login guard /student-dashboard/courses/xx/assignment/xxx/hand-in image