diff --git a/src/pages/homepage/components/Bookmarks/Bookmarks.tsx b/src/pages/homepage/components/Bookmarks/Bookmarks.tsx index 84aa080..8ab5141 100644 --- a/src/pages/homepage/components/Bookmarks/Bookmarks.tsx +++ b/src/pages/homepage/components/Bookmarks/Bookmarks.tsx @@ -4,13 +4,13 @@ import { textClasses } from 'styles'; import LinkGroups from './LinkGroups'; function Links({ contentType }: any) { - const { isMobile, linksIsFetched, groupsIsFetched, groups, bookmarkData } = + const { isMobile, linksIsFetched, groupsIsFetched, groupData, bookmarkData } = useCommonHooks(); return ( <> {groupsIsFetched && linksIsFetched && - groups?.length > 0 && + groupData?.length > 0 && contentType.length > 0 && ( @@ -26,7 +26,7 @@ function Links({ contentType }: any) { gridTemplateRows: 'auto', }} > - {groups.map((category: any) => { + {groupData.map((category: any) => { if ( contentType.includes(category.filterName) || contentType.includes('All') @@ -36,7 +36,7 @@ function Links({ contentType }: any) { key={category} category={category.categoryName} links={bookmarkData.filter( - (bookmark: any) => bookmark.category === category, + (bookmark: any) => bookmark.category === category.categoryName, )} /> );