Skip to content

Commit

Permalink
Make final page count print properly for perfectbound
Browse files Browse the repository at this point in the history
  • Loading branch information
Cocoa committed Dec 28, 2023
1 parent ca5219a commit 1c4a5d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/renderUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function renderInfoBox(book) {
return

const outputPages = book.book.pagelist.reduce((acc, list) => {
list.forEach((sublist) => (acc += sublist.length));
list.forEach((sublist) => (acc += (sublist.length ? sublist.length : 1)));
return acc;
}, 0);

Expand Down

0 comments on commit 1c4a5d7

Please sign in to comment.