Invert to be if(!form) goback
This commit is contained in:
parent
9794e32f48
commit
9b252cace5
1 changed files with 6 additions and 7 deletions
|
@ -560,13 +560,12 @@ module.exports = React.createClass({
|
||||||
{ _t('Sign in instead') }
|
{ _t('Sign in instead') }
|
||||||
</a>;
|
</a>;
|
||||||
|
|
||||||
let goBack = <a className="mx_AuthBody_changeFlow" onClick={this.onGoToFormClicked} href="#">
|
// Only show the 'go back' button if you're not looking at the form
|
||||||
{ _t('Go back') }
|
let goBack;
|
||||||
</a>;
|
if ((PHASES_ENABLED && this.state.phase !== PHASE_REGISTRATION) || this.state.doingUIAuth) {
|
||||||
|
goBack = <a className="mx_AuthBody_changeFlow" onClick={this.onGoToFormClicked} href="#">
|
||||||
// Don't show the 'go back' button in one specific case: when you're staring at the form.
|
{ _t('Go back') }
|
||||||
if ((PHASES_ENABLED && this.state.phase === PHASE_REGISTRATION) && !this.state.doingUIAuth) {
|
</a>;
|
||||||
goBack = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue