diff --git a/client/src/app/components/cabinet/CabinetContainer.tsx b/client/src/app/components/cabinet/CabinetContainer.tsx index 6f82370..d61f91a 100644 --- a/client/src/app/components/cabinet/CabinetContainer.tsx +++ b/client/src/app/components/cabinet/CabinetContainer.tsx @@ -10,6 +10,7 @@ import { Broadcast } from '@libs/internalTypes'; import { getSuggestedLiveList } from '@libs/actions'; import useFollowingLives from '@hooks/useFollowingLives'; import useUser from '@hooks/useUser'; +import ErrorBoundary from '@components/ErrorBoundary'; const CabinetContainer = () => { const { isLoggedin } = useUser(); @@ -18,7 +19,9 @@ const CabinetContainer = () => {
{isLoggedin && } - + + +
); }; @@ -88,7 +91,7 @@ const SuggestedNavigator = () => { }, []); const filteredSuggestedList = useMemo(() => { - return suggestedList.filter((suggested) => !ids.includes(suggested.broadcastId)); + return suggestedList?.filter((suggested) => !ids.includes(suggested.broadcastId)) || []; }, [suggestedList, ids]); return (