Skip to content

Commit

Permalink
Merge pull request #293 from MeeTeamIdle/release-1.0
Browse files Browse the repository at this point in the history
fix: 북마크 버그 수정
  • Loading branch information
prgmr99 authored Nov 14, 2024
2 parents b7cc135 + 9c3c593 commit 6e7c6ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/recruit/recruitPage/RecruitPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,12 @@ const RecruitPage = () => {
{ filterState: location.pathname === '/' ? filterState : filterStateAuth, page },
],
queryFn: async () => {
if (location.pathname === '/') {
if (location.pathname === '/' && !isLogin) {
return await getPostList({ filterState, page });
} else if (location.pathname === '/campus') {
return await getAuthPostList({ filterState: filterStateAuth, page });
} else if (location.pathname === '/' && isLogin) {
return await getAuthPostList({ filterState, page });
}
},
});
Expand Down

0 comments on commit 6e7c6ae

Please sign in to comment.