chore: added logging for debugginh

This commit is contained in:
Jody Bailey
2023-05-16 09:26:46 +02:00
parent 7bd3452dc3
commit cd7650ab42

View File

@@ -28,10 +28,13 @@ const useFetchCrossProductCourses = () => {
api
.fetchCrossProductCourses('course-v1:IBM+IBMBCC001+1T2022')
.then((response) => {
console.log("Here is the response", response)
if (response.status === 200) {
setIsProductRecommendationsLoading(false);
setProductRecommendations(response.data.courses);
}
}).catch(err => {
console.log("here is the error", err)
});
}
return () => { isMounted = false; };