Skip to content

Commit

Permalink
Handle showing disabled state of automatic chapter deletion (#533)
Browse files Browse the repository at this point in the history
The disabled state (0) was incorrectly handled as the downloading state
  • Loading branch information
schroda authored Jan 2, 2024
1 parent 05fa3d0 commit 6c46c56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const CHAPTERS_TO_DELETE_SELECT_VALUES: SelectSettingValue<(typeof CHAPTERS_TO_D
]);

const getNormalizedChapterToDelete = (chapterToDelete?: number | boolean) => {
if (!chapterToDelete) {
if (chapterToDelete === undefined) {
return undefined;
}

Expand Down

0 comments on commit 6c46c56

Please sign in to comment.