Skip to content

Commit

Permalink
hotfix: filter 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
moong23 committed Sep 14, 2024
1 parent 87d0d8b commit e1e12c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/main/TodayTab/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ const TodayTab = () => {
);
}) ?? [];

// setTodayArticleData(filteredData);
data && setTodayArticleData(data);
setTodayArticleData(filteredData);
}, [data]);
useEffect(() => {
if (isError && error.response?.status === 403) {
Expand All @@ -75,7 +74,7 @@ const TodayTab = () => {

return isFetched && todayArticleData.length > 0 ? (
<>
<div className='flex flex-col items-center mt-10 gap-3'>
<div className='flex flex-col items-center gap-3 mt-10'>
<span className='text-blue text-body1'>{formatToYMD(new Date())}</span>
<span className='text-center text-h1'>
{userData?.username}님에게
Expand Down

0 comments on commit e1e12c8

Please sign in to comment.