diff options
Diffstat (limited to 'src/lib/Media')
| -rw-r--r-- | src/lib/Media/Manga/chapters.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Media/Manga/chapters.ts b/src/lib/Media/Manga/chapters.ts index 32e1f0fc..caac1fbd 100644 --- a/src/lib/Media/Manga/chapters.ts +++ b/src/lib/Media/Manga/chapters.ts @@ -38,7 +38,7 @@ const getManga = async ( break; } - const nullIfNullString = (s: string | null) => (s == 'null' ? null : s); + const nullIfNullString = (s: string | null) => (s === 'null' ? null : s); const get = async (title: string) => { try { return await ( @@ -195,7 +195,7 @@ export const chapterCount = async ( lastChapter = (await getChapterCount(manga.title.native)) || 0; } - if (lastChapter == 0) lastChapter = -1; + if (lastChapter === 0) lastChapter = -1; await database.chapters.put({ id: manga.id, |