• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

alkem-io / client-web / #9048

11 Oct 2024 01:42PM UTC coverage: 5.943%. First build
#9048

Pull #7022

travis-ci

Pull Request #7022: [v0.74.0] Roles API + Unauthenticated Explore page

202 of 10241 branches covered (1.97%)

Branch coverage included in aggregate %.

63 of 431 new or added lines in 60 files covered. (14.62%)

1468 of 17861 relevant lines covered (8.22%)

0.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/domain/community/contributor/useAccountResources/useAccountResources.ts
1
import { useAccountResourcesInfoQuery } from '@/core/apollo/generated/apollo-hooks';
2
import { useMemo } from 'react';
3

NEW
4
const useAccountResources = (accountId: string | undefined) => {
×
NEW
5
  const { data: accountData } = useAccountResourcesInfoQuery({
×
6
    variables: {
7
      accountId: accountId!,
8
    },
9
    skip: !accountId,
10
  });
11

NEW
12
  return useMemo(() => {
×
NEW
13
    if (!accountData || !accountData.lookup.account) {
×
NEW
14
      return undefined;
×
15
    }
16

NEW
17
    return accountData.lookup.account;
×
18
  }, [accountData]);
19
};
20

21
export default useAccountResources;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc