polkadot-js/apps

View on GitHub
packages/react-components/src/InputStorage/options/key.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function keyOptions has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function keyOptions (api: ApiPromise, sectionName: string): DropdownOptions {
  const section = api.query[sectionName];

  if (!section || Object.keys(section).length === 0) {
    return [];
Severity: Minor
Found in packages/react-components/src/InputStorage/options/key.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status