Skip to content

Commit

Permalink
Merge pull request #704 from davidktlee/fix-like-course
Browse files Browse the repository at this point in the history
fix: 좋아요 한 코스 없을 경우 처리
  • Loading branch information
ollehkt authored Mar 28, 2024
2 parents 7c81a93 + 6f3b86c commit f3235e1
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ export default async function FavoriteCoursePage() {
}
return (
<>
<FavoriteCourseList
favoriteCourseList={res.data.contents}
has_next={res.data.has_next}
/>
{!!res.data.contents.length ? (
<FavoriteCourseList
favoriteCourseList={res.data.contents}
has_next={res.data.has_next}
/>
) : (
<div className="w-full h-full flex justify-center items-center text-4xl text-center text-main">
좋아요 한 코스가 없습니다.
</div>
)}
</>
);
}

0 comments on commit f3235e1

Please sign in to comment.