mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
fix request to check completed
This commit is contained in:
parent
3abacba428
commit
74d84bd308
@ -16,7 +16,7 @@ const useCheckCourseProgress = () => {
|
||||
const courseId = userCourse.courseId;
|
||||
|
||||
try {
|
||||
const response = await axios.get(`/api/users/${userId}/courses/${courseId}`);
|
||||
const response = await axios.get(`/api/users/${userId}/courses?courseSlug=${courseId}`);
|
||||
const isCompleted = response.data === true;
|
||||
|
||||
if (isCompleted && !userCourse.completed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user