packages/react-params/src/Param/DispatchResult.tsx
Function DispatchResultDisplay
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 }