Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thebkht committed Oct 25, 2023
1 parent be3e3d4 commit 6bd0868
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/(Main)/feed/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ export default function Feed() {
setPopularPosts(data.popular);
setTopUsers(topUsers.topUsers);
setFeedLength(data.feedLength);
//setFetching(false);
setFetching(false);
setLoading(false);
} catch (error) {
console.error('Error fetching feed:', error);
setLoading(false);
//setFetching(false);
setFetching(false);
}
} else {
setFetching(false)
Expand Down
2 changes: 1 addition & 1 deletion components/blog/post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default function Post({ post, author, sessionUser, tags }: { post: any, a
<div className="article__container">
<div className="article__header max-w-[65ch] lg:text-xl mx-auto">
{
post?.cover !== '' && (
post?.cover && (
<Image src={post?.cover} alt={post?.title} fill className="rounded-lg !relative h-auto" />
)
}
Expand Down

0 comments on commit 6bd0868

Please sign in to comment.