diff --git a/app/components/Feed.tsx b/app/components/Feed.tsx index 2ad80de..6093607 100644 --- a/app/components/Feed.tsx +++ b/app/components/Feed.tsx @@ -50,12 +50,14 @@ const Feed = ({ setCurrentPage((prevPage) => prevPage + 1); }; - if (fetcher.state === "loading") { - return
Loading...
; - } + if (currentPage) { + if (fetcher.state === "loading") { + return
Loading...
; + } - if (!fetcher.data) { - return
Failed to load
; + if (!fetcher.data) { + return
Failed to load
; + } } return (