polkadot-js/apps

View on GitHub
packages/react-params/src/Param/Account.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function Account has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function Account (props: Props): React.ReactElement<Props> {
  const { className = '', defaultValue: { value }, isDisabled, isError, label, onChange, type, withLabel } = props;
  const [defaultValue] = useState(() => (value as string)?.toString());

  const _onChange = useCallback(
Severity: Minor
Found in packages/react-params/src/Param/Account.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status