diff --git a/blog/src/components/PageButtons.tsx b/blog/src/components/PageButtons.tsx index 991f370..d8c716b 100644 --- a/blog/src/components/PageButtons.tsx +++ b/blog/src/components/PageButtons.tsx @@ -39,6 +39,10 @@ export const PageButtons = ({ hrefPrefix = '', ...properties }: Properties) => { + if (total <= 1) { + return; + } + const maxPerSide = Math.floor(max / 2); const start = Math.max( Math.min(Math.max(current - maxPerSide, 1), total - max + 1),