diff --git a/client/components/PageTransition.tsx b/client/components/PageTransition.tsx index 94b0b86c..845cd89b 100644 --- a/client/components/PageTransition.tsx +++ b/client/components/PageTransition.tsx @@ -16,7 +16,9 @@ export default function PageTransition({ children }: PageTransitionProps) { }, [location.pathname]); return ( -
+
{children}
); diff --git a/client/pages/Feed.tsx b/client/pages/Feed.tsx index fabafa8c..e3687291 100644 --- a/client/pages/Feed.tsx +++ b/client/pages/Feed.tsx @@ -93,7 +93,10 @@ export default function Feed() { }); // If no posts yet, fall back to recommended people as placeholders if (mapped.length === 0) { - const recs = await aethexSocialService.listRecommended(user?.id || "guest", 12); + const recs = await aethexSocialService.listRecommended( + user?.id || "guest", + 12, + ); const placeholders: FeedItem[] = recs.map((r: any) => ({ id: r.id, authorId: r.id, @@ -122,9 +125,15 @@ export default function Feed() { let cleanup: any = null; try { const sub = realtimeService.subscribeToCommunityPosts(() => load()); - cleanup = () => { try { sub.unsubscribe?.(); } catch {} }; + cleanup = () => { + try { + sub.unsubscribe?.(); + } catch {} + }; } catch {} - return () => { cleanup?.(); }; + return () => { + cleanup?.(); + }; }, [user, loading]); const isFollowingAuthor = (id: string) => following.includes(id);