Fix migration outdated match detection
This commit is contained in:
@@ -950,7 +950,7 @@ export class MigrationManager {
|
|||||||
latestChapterNumber > selectedMatchLatestChapterNumber;
|
latestChapterNumber > selectedMatchLatestChapterNumber;
|
||||||
const hasNewerChapter = hasNewerChapterVsEntry && hasNewerChapterVsSelectedMatch;
|
const hasNewerChapter = hasNewerChapterVsEntry && hasNewerChapterVsSelectedMatch;
|
||||||
|
|
||||||
const isOutdated = latestChapterNumber <= entryLatestChapterNumber;
|
const isOutdated = latestChapterNumber < entryLatestChapterNumber;
|
||||||
|
|
||||||
const hasSameLatestChapterAsSelectedMatch =
|
const hasSameLatestChapterAsSelectedMatch =
|
||||||
!!draftMatchEntry && selectedMatchLatestChapterNumber === latestChapterNumber;
|
!!draftMatchEntry && selectedMatchLatestChapterNumber === latestChapterNumber;
|
||||||
|
|||||||
Reference in New Issue
Block a user