diff --git a/src/ui/modals/ReadingLogEntryEditModalView.svelte b/src/ui/modals/ReadingLogEntryEditModalView.svelte index 7fece64..eccde29 100644 --- a/src/ui/modals/ReadingLogEntryEditModalView.svelte +++ b/src/ui/modals/ReadingLogEntryEditModalView.svelte @@ -51,7 +51,7 @@ }); $effect(() => { - pagesRemaining = bookMetadata?.book.pageCount ?? 0 - pagesReadTotal; + pagesRemaining = (bookMetadata?.book.pageCount ?? 0) - pagesReadTotal; }); $effect(() => {