diff --git a/frontend/src/pages/posts/PostListPage.tsx b/frontend/src/pages/posts/PostListPage.tsx index 45f67ca..2666289 100644 --- a/frontend/src/pages/posts/PostListPage.tsx +++ b/frontend/src/pages/posts/PostListPage.tsx @@ -45,7 +45,7 @@ export default () => { .map (post => [post.id, post]))) .values ())])) setCursor (data.nextCursor) - setTotalPages (Math.trunc ((data.count - 1) / limit)) + setTotalPages (Math.ceil (data.count / limit)) setLoading (false) }