Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding default properties to NetworkForm #10682

Merged
merged 1 commit into from
Mar 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Adding default properties to NetworkForm
Fixes #10681
  • Loading branch information
ryanml committed Mar 21, 2021
commit 992b5ae86c4fcb52b0b49e1c68d84f2a7e4f4d5a
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down