We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 535b6c9 commit e86df42Copy full SHA for e86df42
src/components/main/container/PostContainer/index.tsx
@@ -24,16 +24,16 @@ const RecentPostSection = ({
24
size: number;
25
isLoading: boolean;
26
}) => {
27
- if (isEmpty(recentPosts)) {
28
- return <div>최근 게시글이 없습니다.</div>;
29
- }
30
-
31
if (isLoading) {
32
return Array.from({ length: size }, (_, index) => (
33
<SkeletonPostCard key={index} />
34
));
35
}
36
+ if (isEmpty(recentPosts)) {
+ return <div>최근 게시글이 없습니다.</div>;
+ }
+
37
return recentPosts
38
.slice(0, size)
39
.map((post) => <RecentPostCard key={post.id} post={post} />);
0 commit comments