Invert to be if(!form) goback

This commit is contained in:
Travis Ralston 2019-03-12 10:39:38 -06:00
parent 9794e32f48
commit 9b252cace5

View file

@ -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 (