diff --git a/src/ui/components/suggesters/TextInputSuggest.svelte b/src/ui/components/suggesters/TextInputSuggest.svelte index 236770b..6ce2317 100644 --- a/src/ui/components/suggesters/TextInputSuggest.svelte +++ b/src/ui/components/suggesters/TextInputSuggest.svelte @@ -45,7 +45,6 @@ await onChange?.(query); }); - $inspect(value, query, items); $effect.root(() => { function findIndex(value: T | undefined) { return items.findIndex((item) => item.value === value); diff --git a/src/utils/ReadingLog.ts b/src/utils/ReadingLog.ts index 9ddc384..e1dbcaf 100644 --- a/src/utils/ReadingLog.ts +++ b/src/utils/ReadingLog.ts @@ -87,7 +87,7 @@ export class ReadingLog { if (lastEntry && isSameDay(lastEntry.createdAt, newEntry.createdAt)) { newEntry.pagesRead += lastEntry.pagesRead; - await this.updateEntry(this.entries.indexOf(lastEntry), lastEntry); + await this.updateEntry(this.entries.indexOf(lastEntry), newEntry); } else { await this.addRawEntry(newEntry); }