Skip to content

Commit 014b68a

Browse files
committed
fix: the logic for which exclusion setting takes precedence was backwards
Fixes #36
1 parent 62a0ba2 commit 014b68a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919

2020
### Fixed 🐛
2121

22-
- Don't show "last strip" button when said strip is the current strip
22+
- Don't show "last strip" button in item navigation bar when said strip is the current strip
23+
- The logic for which exclusion setting takes precedence was backwards, so if you had set both "skip non-canon comics" and "skip guest comics," it would only skip guest comics, but not non-canon comics. Fixes [#36](https://github.com/Questionable-Content-Extensions/client/issues/36)
2324

2425
## [1.0.0][] - 2023-09-09
2526

src/store/api/comicApiSlice.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ export const comicApiSlice = apiSlice.injectEndpoints({
7878
if (editModeToken) {
7979
urlParameters.token = editModeToken
8080
}
81-
if (skipGuest) {
82-
urlParameters.exclude = 'guest'
83-
} else if (skipNonCanon) {
81+
if (skipNonCanon) {
8482
urlParameters.exclude = 'non-canon'
83+
} else if (skipGuest) {
84+
urlParameters.exclude = 'guest'
8585
}
8686
if (showAllMembers || editModeToken) {
8787
urlParameters.include = 'all'

0 commit comments

Comments
 (0)