Turn on cantFetch

This commit is contained in:
rotimi-best
2021-08-21 13:32:28 +03:00
parent 07e8b3a5cb
commit b3e68119a7
+1 -1
View File
@@ -106,7 +106,7 @@
async function getCourses(userId) {
console.log(`getCourses process.browser`, process.browser);
if (process.browser) {
if (!cantFetch && typeof cantFetch === 'boolean' && !allCourses.length) {
if (cantFetch && typeof cantFetch === 'boolean' && !allCourses.length) {
const coursesResult = await fetchCourses(userId);
console.log(`coursesResult`, coursesResult);