Skip to content

Commit

Permalink
fixing the ceil problem in pagination component
Browse files Browse the repository at this point in the history
  • Loading branch information
asserelzeki6 committed Dec 16, 2024
1 parent 2a15679 commit 0e9c502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/Pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default {
}
return Math.max(
1,
this.currentPage - Math.floor(this.maxVisibleButtons / 2)
this.currentPage - Math.ceil(this.maxVisibleButtons / 2)
);
},
pages() {
Expand Down

0 comments on commit 0e9c502

Please sign in to comment.