1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

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.
This commit is contained in:
Elliot Winkler 2021-10-01 16:23:54 -06:00 committed by GitHub
parent a174d50ba5
commit 7c4bd78f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }) {