aboutsummaryrefslogtreecommitdiff
path: root/src/control/search.js
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-02-08 22:41:19 +0800
committerMistivia <i@mistivia.com>2025-02-08 22:51:22 +0800
commit0a6ed62a3127773acfb1534248edd5a5613aaed0 (patch)
tree24a375415cc303ac8726b14e8d04b6dfc457c5c2 /src/control/search.js
parent6ac9637c64391cf2061adf886d00fe5320571427 (diff)
polish
Diffstat (limited to 'src/control/search.js')
-rw-r--r--src/control/search.js2
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();
}