polkadot-js/apps

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

Summary

Maintainability
A
1 hr
Test Coverage

Function useWeightImpl has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useWeightImpl (call?: Call | null): Result {
  const { api } = useApi();
  const mountedRef = useIsMountedRef();
  const [state, setState] = useState<Result>(() => objectSpread({
    // eslint-disable-next-line @typescript-eslint/unbound-method
Severity: Minor
Found in packages/react-hooks/src/useWeight.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status