Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Apr 12, 2024
1 parent 96c2da8 commit 01673ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/desktop-client/src/hooks/useCategoryGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ import { useCategories } from './useCategories';

export function useCategoryGroup(id: string) {
const { grouped: categoryGroups } = useCategories();
return useMemo(() => categoryGroups.find(g => g.id === id), [id, categoryGroups]);
return useMemo(
() => categoryGroups.find(g => g.id === id),
[id, categoryGroups],
);
}

0 comments on commit 01673ac

Please sign in to comment.