diff --git a/ts/components/session/RegistrationTabs.tsx b/ts/components/session/RegistrationTabs.tsx index 1602bcfbe..ff647d473 100644 --- a/ts/components/session/RegistrationTabs.tsx +++ b/ts/components/session/RegistrationTabs.tsx @@ -437,8 +437,9 @@ export class RegistrationTabs extends React.Component<{}, State> { } private renderNamePasswordAndVerifyPasswordFields() { + const {password, passwordFieldsMatch} = this.state; const passwordsDoNotMatch = - !this.state.passwordFieldsMatch && this.state.password + !passwordFieldsMatch && this.state.password ? window.i18n('passwordsDoNotMatch') : undefined; @@ -470,18 +471,18 @@ export class RegistrationTabs extends React.Component<{}, State> { }} /> - { this.onPasswordVerifyChanged(val); }} onEnterPressed={() => { this.handlePressEnter(); }} - /> + />} ); }