polkadot-js/apps

View on GitHub
packages/react-hooks/src/useTreasury.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useTreasuryImpl has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useTreasuryImpl (): Result {
  const { api } = useApi();
  const [result, setResult] = useState<Result>(() => ({
    pendingBounties: BN_ZERO,
    pendingProposals: BN_ZERO,
Severity: Major
Found in packages/react-hooks/src/useTreasury.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status