diff options
| author | Mistivia <i@mistivia.com> | 2025-02-08 22:41:19 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-02-08 22:51:22 +0800 |
| commit | 0a6ed62a3127773acfb1534248edd5a5613aaed0 (patch) | |
| tree | 24a375415cc303ac8726b14e8d04b6dfc457c5c2 /src/control | |
| parent | 6ac9637c64391cf2061adf886d00fe5320571427 (diff) | |
polish
Diffstat (limited to 'src/control')
| -rw-r--r-- | src/control/search.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/search.js b/src/control/search.js index 64e97f7..8f3fa87 100644 --- a/src/control/search.js +++ b/src/control/search.js @@ -58,7 +58,7 @@ function onPrevPage() { } function onNextPage() { - if (curPage < Math.floor(resultCards.length / 10) - 1) { + if (curPage < Math.floor((resultCards.length - 1) / 10)) { curPage += 1; showCards(); } |
