fix: show markunread if local state is unread
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user