mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Adding default properties to NetworkForm (#10682)
Fixes MetaMask/metamask-extension#10681
This commit is contained in:
parent
1b4504e233
commit
fc8ffc134d
@ -43,6 +43,14 @@ export default class NetworkForm extends PureComponent {
|
||||
isFullScreen: PropTypes.bool,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
rpcUrl: '',
|
||||
chainId: '',
|
||||
ticker: '',
|
||||
networkName: '',
|
||||
blockExplorerUrl: '',
|
||||
};
|
||||
|
||||
state = {
|
||||
rpcUrl: this.props.rpcUrl,
|
||||
chainId: this.getDisplayChainId(this.props.chainId),
|
||||
|
Loading…
Reference in New Issue
Block a user