polkadot-js/apps

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

Summary

Maintainability
A
1 hr
Test Coverage

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

function DispatchResultDisplay (props: Props): React.ReactElement<Props> {
  const { defaultValue, isDisabled, label } = props;
  const dispatchError = useMemo(
    () => defaultValue && isDispatchResultErr(defaultValue.value)
      ? { isValid: true, value: defaultValue.value.asErr }
Severity: Minor
Found in packages/react-params/src/Param/DispatchResult.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status