From dd84ac8aea168764973da1cc70ea9f0650e0d0f9 Mon Sep 17 00:00:00 2001 From: xavilien <“xavilien@gmail.com”> Date: Sun, 6 Oct 2024 16:05:22 -0400 Subject: [PATCH] Fixed some styling issues --- apps/frontend/src/components/SearchBar.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/frontend/src/components/SearchBar.tsx b/apps/frontend/src/components/SearchBar.tsx index 37ee051..27fb20e 100644 --- a/apps/frontend/src/components/SearchBar.tsx +++ b/apps/frontend/src/components/SearchBar.tsx @@ -160,7 +160,7 @@ const SearchBar = () => { useEffect(() => { if (showAllRef.current) { if (loggedIn) { - if ((showFCEs && showCourseInfos && showSchedules)) { + if (showFCEs && showCourseInfos && showSchedules) { showAllRef.current.indeterminate = false; showAllRef.current.checked = true; } else if (!(showFCEs || showCourseInfos || showSchedules)) { @@ -169,8 +169,7 @@ const SearchBar = () => { } else showAllRef.current.indeterminate = true; } else { - console.log(showFCEs, showCourseInfos, showSchedules); - if ((showCourseInfos && showSchedules)) { + if (showCourseInfos && showSchedules) { showAllRef.current.indeterminate = false; showAllRef.current.checked = true; } else if (!(showCourseInfos || showSchedules)) { @@ -196,7 +195,7 @@ const SearchBar = () => { const setShowAll = (e: React.ChangeEvent) => { dispatch(userSlice.actions.showAll(e.target.checked)); - if (loggedIn) {dispatch(userSlice.actions.showFCEs(e.target.checked));} + if (loggedIn) dispatch(userSlice.actions.showFCEs(e.target.checked)); dispatch(userSlice.actions.showCourseInfos(e.target.checked)); dispatch(userSlice.actions.showSchedules(e.target.checked)); };