polkadot-js/apps

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

Summary

Maintainability
A
1 hr
Test Coverage

Function useTeleportImpl has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function useTeleportImpl (): Teleport {
  const { api, apiUrl, isApiReady } = useApi();
  const paraId = useCall<ParaId>(isApiReady && api.query.parachainInfo?.parachainId);
  const [state, setState] = useState<Teleport>(() => ({ ...DEFAULT_STATE }));

Severity: Minor
Found in packages/react-hooks/src/useTeleport.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status