From cd7650ab42040304b617ae68e32d17bd09275591 Mon Sep 17 00:00:00 2001 From: Jody Bailey Date: Tue, 16 May 2023 09:26:46 +0200 Subject: [PATCH] chore: added logging for debugginh --- src/widgets/ProductRecommendations/hooks.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widgets/ProductRecommendations/hooks.js b/src/widgets/ProductRecommendations/hooks.js index 8e14cef..a11921b 100644 --- a/src/widgets/ProductRecommendations/hooks.js +++ b/src/widgets/ProductRecommendations/hooks.js @@ -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; };