Skip to content

Commit

Permalink
refactor: Make lastPage an arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
dodiameer committed Feb 2, 2021
1 parent 51eba1e commit c1a0340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/AllBooks.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$: limit && changeLimit();
$: currentPage = $books.variables.offset / $books.variables.limit + 1;
$: lastPage = function () {
$: lastPage = () => {
try {
const mod = $books.variables.limit % $books.data.countBooks;
const division = $books.data.countBooks / $books.variables.limit;
Expand Down

0 comments on commit c1a0340

Please sign in to comment.