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:
parent
47d94489b7
commit
58d19745c9
@ -68,6 +68,9 @@ export default class NetworkForm extends PureComponent {
|
||||
}
|
||||
|
||||
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.setState({
|
||||
rpcUrl: '',
|
||||
|
Loading…
Reference in New Issue
Block a user