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

Fix https://github.com/vector-im/vector-web/issues/1679 #318

Merged
merged 2 commits into from Jun 21, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Jun 21, 2016

customHsUrl={this.getCurrentHsUrl()}
customIsUrl={this.getCurrentIsUrl()}
fallbackHsUrl={this.getFallbackHsUrl()}
onForgotPasswordClick={this.onForgotPasswordClick}
onLoginAsGuestClick={this.props.enableGuest && this.props.config && this.props.config.default_hs_url ? this._registerAsGuest.bind(this, true) : undefined}
onLoginAsGuestClick={this.props.enableGuest && this.props.config && this.getDefaultHsUrl() ? this._registerAsGuest.bind(this, true) : undefined}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getDefaultHsUrl can never return falsy, so at least part of this condition is redundant

@richvdh
Copy link
Member

richvdh commented Jun 21, 2016

minor comment, lgtm otherwise

@richvdh richvdh assigned dbkr and unassigned richvdh Jun 21, 2016
This now can never be falsey so no point checking it
@dbkr dbkr assigned richvdh and unassigned dbkr Jun 21, 2016
@dbkr
Copy link
Member Author

dbkr commented Jun 21, 2016

point: ptal

@richvdh richvdh merged commit 2ddfccd into develop Jun 21, 2016
@richvdh richvdh deleted the dbkr/fix_default_hs branch February 15, 2017 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants