Skip to content

Commit

Permalink
fix: frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rravelli committed Aug 12, 2024
1 parent af96f91 commit 0b57ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/pages/Group/GroupTypes.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default function GroupTypesPage() {

const groupTypeResults = groupTypesQuery.data?.results?.filter(
(_, i) =>
listQueries[i].data && (listQueries[i].data.count > 0 || isAuthenticated),
listQueries[i].data &&
((listQueries[i].data?.count ?? 0) > 0 || isAuthenticated),
);

const { staff } = useCurrentUserData();
Expand Down

0 comments on commit 0b57ed9

Please sign in to comment.