Skip to content

Commit

Permalink
Fix IDE warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Sep 20, 2024
1 parent f19fe52 commit c13d914
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Collection/Filter/DefaultCriteria.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const DefaultCriteria = ({ criteria }: Props) => {
const selectedCondition = useSelector(
(state: RootState) => {
const value: boolean | undefined = state.collection.filterConditions[criteria.Expression];
if (value === true || value === false) {
if (value !== undefined) {
return value ? '1' : '0';
}
return value;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Panels/ShokoPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ShokoPanel = (
<div
className={cx(
'flex grow flex-col shoko-scrollbar',
disableOverflow === false && 'overflow-y-auto',
!disableOverflow && 'overflow-y-auto',
contentClassName,
)}
style={{ overflowAnchor: 'none' }} // To fix scroll jumping around randomly when queue items change
Expand Down

0 comments on commit c13d914

Please sign in to comment.