fix undefined ref

This commit is contained in:
Vyrtsev Mikhail
2019-07-06 13:58:58 -05:00
committed by Umputun
parent 8ea5936ab0
commit 6fd803e891
@@ -198,7 +198,7 @@ export class AuthPanel extends Component<Props, State> {
>
<DropdownItem>
<EmailLoginFormConnected
ref={ref => (this.emailLoginRef = ref.getWrappedInstance())}
ref={ref => (this.emailLoginRef = ref ? ref.getWrappedInstance() : null)}
onSignIn={this.onEmailSignIn}
theme={this.props.theme}
className="auth-panel__email-login-form"