From aef26e511b6a05e51aef44aafad8599e12b2b41f Mon Sep 17 00:00:00 2001 From: RXRD <118821868+RiXelanya@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:12:04 +0700 Subject: [PATCH] fix: profile post (#1954) fix --- src/components/PostList/ProfilePostList.container.tsx | 1 - src/components/PostList/hooks/use-profile-filter.hook.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/PostList/ProfilePostList.container.tsx b/src/components/PostList/ProfilePostList.container.tsx index 876b795e9..3ad75e9cb 100644 --- a/src/components/PostList/ProfilePostList.container.tsx +++ b/src/components/PostList/ProfilePostList.container.tsx @@ -15,7 +15,6 @@ import { EmptyContentEnum } from '../Search/EmptyResult.interfaces'; import { Loading } from '../atoms/Loading'; import { useStyles } from './PostList.styles'; import { useProfileFilter } from './hooks/use-profile-filter.hook'; -import { useTimelineFilter } from './hooks/use-timeline-filter.hook'; import { PostDetailContainer } from 'components/PostDetail/PostDetail.container'; import ShowIf from 'components/common/show-if.component'; diff --git a/src/components/PostList/hooks/use-profile-filter.hook.ts b/src/components/PostList/hooks/use-profile-filter.hook.ts index e4d3d4314..1e6357196 100644 --- a/src/components/PostList/hooks/use-profile-filter.hook.ts +++ b/src/components/PostList/hooks/use-profile-filter.hook.ts @@ -69,7 +69,7 @@ export const useProfileFilter = ( const filterTimeline = useCallback( async (query?: ParsedUrlQuery) => { console.log('HAHAHA'); - let timelineType = TimelineType.PROFILE; + const timelineType = TimelineType.PROFILE; let timelineOrder = TimelineOrderType.LATEST; let tags: string[] = []; let search: string;