diff --git a/src/components/PostsContainer.tsx b/src/components/PostsContainer.tsx index 71da5eb..50bc8e9 100644 --- a/src/components/PostsContainer.tsx +++ b/src/components/PostsContainer.tsx @@ -29,8 +29,8 @@ export function PostsContainer(): JSX.Element { function onRefresh(): void { setRefreshing(true); + setPostData([]); setPage(0); - setPostData(postData.slice(0, 10)); setRefreshing(false); }