Skip to content

Commit

Permalink
minor reader bug fixed (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
DattatreyaReddy authored Dec 18, 2022
1 parent 76e1e9b commit cfc3b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ class ReaderScreen extends HookConsumerWidget {
final chapterValue = chapter.valueOrNull;
final isReadingCompeted = chapterValue != null &&
((chapterValue.read).ifNull() ||
(currentPage >
(currentPage >=
((chapterValue.pageCount).ifNullOrNegative() - 1)));
await AsyncValue.guard(
() => ref.read(mangaBookRepositoryProvider).putChapter(
mangaId: mangaId,
chapterIndex: chapterIndex,
patch: ChapterPut(
lastPageRead: currentPage,
lastPageRead: isReadingCompeted ? 0 : currentPage,
read: isReadingCompeted,
),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tachidesk_sorayomi
description: A new Flutter frontend for Tachidesk.

publish_to: "none"
version: 0.3.3+1
version: 0.3.4+1

environment:
sdk: ">=2.18.1 <3.0.0"
Expand Down

0 comments on commit cfc3b4c

Please sign in to comment.