Skip to content

Commit

Permalink
fix: eslint fail
Browse files Browse the repository at this point in the history
  • Loading branch information
linhvovan29546 committed Feb 10, 2025
1 parent ead0e57 commit bbcfd4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useScrollEnabled/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import type UseScrollEnabled from './types';
const useScrollEnabled: UseScrollEnabled = () => {
const isFocused = useIsFocused();
const prevIsFocused = usePrevious(isFocused);
return prevIsFocused && !isFocused ? false : true;
return !(prevIsFocused && !isFocused);
};
export default useScrollEnabled;

0 comments on commit bbcfd4e

Please sign in to comment.