Permalink
Browse files

Fixed pagination bug where, for example, 53 domains would only show two

pages.
  • Loading branch information...
shupp committed Mar 8, 2018
1 parent 18df81f commit 1e04d58cfcfe569a7bf9363e8cb08f753c3e03c8
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/js/components/Pager.react.js
@@ -26,7 +26,7 @@ var Pager = React.createClass({
var showPages = parseInt(showPages, 10);
// Figure out paging range to show
var pagesEnd = currentPage + Math.floor(showPages / 2);
var pagesEnd = currentPage + Math.ceil(showPages / 2);
if (pagesEnd > pageCount) {
pagesEnd = pageCount;
}

0 comments on commit 1e04d58

Please sign in to comment.