From cfefabfcdfdbbd939ea0fa39f989086b65fce55c Mon Sep 17 00:00:00 2001 From: Austin Kelsay <53542748+AustinKelsay@users.noreply.github.com> Date: Mon, 12 May 2025 09:29:35 -0500 Subject: [PATCH] Update src/hooks/courses/useCourseTabs.js Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- src/hooks/courses/useCourseTabs.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/courses/useCourseTabs.js b/src/hooks/courses/useCourseTabs.js index 0714aad..dffcda8 100644 --- a/src/hooks/courses/useCourseTabs.js +++ b/src/hooks/courses/useCourseTabs.js @@ -12,8 +12,7 @@ import useWindowWidth from '../useWindowWidth'; const useCourseTabs = (options = {}) => { const router = useRouter(); const windowWidth = useWindowWidth(); - const isMobileView = windowWidth <= 968; - + const isMobileView = typeof windowWidth === 'number' ? windowWidth <= 968 : false; // Tab management state const [activeTab, setActiveTab] = useState('overview'); const [sidebarVisible, setSidebarVisible] = useState(