fix: show markunread if local state is unread

This commit is contained in:
Julien Froidefond
2025-03-02 07:27:33 +01:00
parent c0a13abf4a
commit eaed4664c2

View File

@@ -70,7 +70,7 @@ export function BookCover({
const statusInfo = getReadingStatusInfo(book, t); const statusInfo = getReadingStatusInfo(book, t);
const isRead = book.readProgress?.completed || false; const isRead = book.readProgress?.completed || false;
const hasReadProgress = book.readProgress !== null; const hasReadProgress = book.readProgress !== null || currentPage > 0;
const handleMarkAsRead = () => { const handleMarkAsRead = () => {
onSuccess?.(book, "read"); onSuccess?.(book, "read");