diff --git a/src/routes/courses.svelte b/src/routes/courses.svelte index 8d2a7535..5af335a2 100644 --- a/src/routes/courses.svelte +++ b/src/routes/courses.svelte @@ -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);