Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants