From b50ecfe51e84b582a850420bbc1b32ff99d0c158 Mon Sep 17 00:00:00 2001 From: homersimpsons Date: Sat, 12 Sep 2026 12:37:48 +0200 Subject: [PATCH] Inbox: show minimum 1 page When there are 0 `data`, we displayed "Page 1 of 0" instead of "Page 1 of 1". --- src/pages/Inbox/Inbox.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Inbox/Inbox.jsx b/src/pages/Inbox/Inbox.jsx index 332522793..7b96ccdb9 100644 --- a/src/pages/Inbox/Inbox.jsx +++ b/src/pages/Inbox/Inbox.jsx @@ -417,7 +417,7 @@ const Inbox = (props) => { ); } - const totalPages = Math.ceil(data.length / pageSize); + const totalPages = Math.max(Math.ceil(data.length / pageSize), 1); return (