1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Add explanatory comment

This commit is contained in:
Erik Marks 2020-10-28 16:47:52 -07:00
parent 47d94489b7
commit 58d19745c9

View File

@ -68,6 +68,9 @@ export default class NetworkForm extends PureComponent {
} }
componentWillUnmount () { componentWillUnmount () {
// onClear will push the network settings route unless was pass false.
// Since we call onClear to cause this component to be unmounted, the
// route will already have been updated, and we avoid setting it twice.
this.props.onClear(false) this.props.onClear(false)
this.setState({ this.setState({
rpcUrl: '', rpcUrl: '',