Suppress prop types warning in RadioGroupComponent (#12249)

When editing the gas fee for a transaction, the following warning is
being output to the console:

    Warning: Failed prop type: Connector: prop type `isFirst` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.

This commit fixes this issue.
feature/default_network_editable
Elliot Winkler 3 years ago committed by GitHub
parent a174d50ba5
commit 7c4bd78f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      ui/components/ui/radio-group/radio-group.component.js

@ -24,8 +24,8 @@ function Connector({ isFirst, isLast }) {
}
Connector.propTypes = {
isFirst: PropTypes.boolean,
isLast: PropTypes.boolean,
isFirst: PropTypes.bool,
isLast: PropTypes.bool,
};
export default function RadioGroup({ options, name, selectedValue, onChange }) {

Loading…
Cancel
Save