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 13, 2024
1 parent 07d9557 commit a2c128e
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 a2c128e

Please sign in to comment.