mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +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,
|
isFullScreen: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static defaultProps = {
|
||||||
|
rpcUrl: '',
|
||||||
|
chainId: '',
|
||||||
|
ticker: '',
|
||||||
|
networkName: '',
|
||||||
|
blockExplorerUrl: '',
|
||||||
|
};
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
rpcUrl: this.props.rpcUrl,
|
rpcUrl: this.props.rpcUrl,
|
||||||
chainId: this.getDisplayChainId(this.props.chainId),
|
chainId: this.getDisplayChainId(this.props.chainId),
|
||||||
|
Loading…
Reference in New Issue
Block a user