mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 04:39:31 +08:00
The confirm handler fired deleteCourse with void and no .catch, so a failed delete left an unhandled rejection, gave the learner no feedback, and still navigated away from the course page. Await the call in a try/catch: stay on the page with a visible alert (and the dialog open for retry) on failure, push /courses only on success, and disable the confirm button while pending. Co-authored-by: XZH <cto@xzh.ai>