on master help sign in
Clear pointCursor when loading login page

Otherwise it might assume the previously set pointCursor is still valid. Also initializes the network properly.

commit41f9889eeff2e05dfef52f84900cdb1a95cfe611 authorFang <git@fang.io> dateWed 19 Jun 2019, 19:52 (7 years ago) parent11c42d9
1 file changed+3−3
src/bridge/views/Login.js+3−3
src/bridge/views/Login.js+3−3
@@ -36,7 +36,6 @@ const TABS = {
3636 ADVANCED: Symbol('ADVANCED'),
3737};
3838
39−//TODO support "advances" login methods. design under discussion...
4039class Login extends React.Component {
4140 constructor(props) {
4241 super(props);
@@ -51,8 +50,9 @@ class Login extends React.Component {
5150 }
5251
5352 componentDidMount() {
54− //TODO send help, want to use initialNetworkType
55− this.props.setNetworkType(NETWORK_TYPES.LOCAL);
53+ this.props.setNetworkType(this.props.networkType);
54+ // we expect pointCursor to not be set yet
55+ this.props.setPointCursor(Nothing());
5656 }
5757
5858 handleTabChange(currentTab) {