mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +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:
parent
a174d50ba5
commit
7c4bd78f2e
@ -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…
Reference in New Issue
Block a user