aboutsummaryrefslogtreecommitdiff
path: root/src/control/search.js
diff options
context:
space:
mode:
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();
}