Reloads now works without duplicating posts

This commit is contained in:
Imbus 2023-12-14 23:17:34 +01:00
parent 57b876bf05
commit 605d0990d3

View file

@ -29,8 +29,8 @@ export function PostsContainer(): JSX.Element {
function onRefresh(): void {
setRefreshing(true);
setPostData([]);
setPage(0);
setPostData(postData.slice(0, 10));
setRefreshing(false);
}