From 1c75f2b68d7f9ef9ae144d85ae73d679b1551665 Mon Sep 17 00:00:00 2001 From: miteruzo Date: Tue, 30 Dec 2025 11:03:01 +0900 Subject: [PATCH] =?UTF-8?q?#169=20=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/posts/PostListPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }