Skip to content

Commit

Permalink
Fixed some styling issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xavilien committed Oct 6, 2024
1 parent c3970b9 commit dd84ac8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions apps/frontend/src/components/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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)) {
Expand All @@ -196,7 +195,7 @@ const SearchBar = () => {

const setShowAll = (e: React.ChangeEvent<HTMLInputElement>) => {
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));
};
Expand Down

0 comments on commit dd84ac8

Please sign in to comment.