From 41ebd69504868edfa196bde8ec086c843f58b1e6 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Sun, 28 Sep 2025 23:44:54 -0500 Subject: [PATCH] Removing the return statement inside the main useEffect call in Posts.jsx to clear error. --- src/app/views/Posts/Posts.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/views/Posts/Posts.jsx b/src/app/views/Posts/Posts.jsx index 5691a1e..79e4714 100755 --- a/src/app/views/Posts/Posts.jsx +++ b/src/app/views/Posts/Posts.jsx @@ -36,7 +36,7 @@ const Posts = ({ user }) => { setError('Failed to load posts or users'); } }; - return fetchData(); + fetchData().catch(); } }, [user]); -- 2.43.0