Handle showing disabled state of automatic chapter deletion (#533)

The disabled state (0) was incorrectly handled as the downloading state
This commit is contained in:
schroda
2024-01-02 16:14:19 +01:00
committed by GitHub
parent 05fa3d0732
commit 6c46c56252

View File

@@ -43,7 +43,7 @@ const CHAPTERS_TO_DELETE_SELECT_VALUES: SelectSettingValue<(typeof CHAPTERS_TO_D
]); ]);
const getNormalizedChapterToDelete = (chapterToDelete?: number | boolean) => { const getNormalizedChapterToDelete = (chapterToDelete?: number | boolean) => {
if (!chapterToDelete) { if (chapterToDelete === undefined) {
return undefined; return undefined;
} }