Apply suggestions

This commit is contained in:
Chi Vinh Le
2018-02-14 14:59:00 +01:00
parent 8f7171b54e
commit 43e02e1574
9 changed files with 19 additions and 17 deletions
@@ -9,7 +9,7 @@ import { setView, setEmail, setPassword } from '../actions';
class SignInContainer extends Component {
state = {
recaptchaResponse: '',
recaptchaResponse: null,
};
handleSubmit = () => {
@@ -12,10 +12,10 @@ class SignUpContainer extends Component {
state = {
username: '',
passwordRepeat: '',
usernameError: '',
emailError: '',
passwordError: '',
passwordRepeatError: '',
usernameError: null,
emailError: null,
passwordError: null,
passwordRepeatError: null,
};
validate = data => {
@@ -30,7 +30,9 @@ class SignUpContainer extends Component {
});
if (data.password !== data.passwordRepeat) {
changes['passwordRepeatError'] = t('sign_in.passwords_dont_match');
changes['passwordRepeatError'] = t(
'talk-plugin-auth.login.passwords_dont_match'
);
valid = false;
}
@@ -11,7 +11,7 @@ import SetUsernameDialog from '../components/SetUsernameDialog';
class SetUsernameDialogContainer extends Component {
state = {
username: this.props.username,
usernameError: '',
usernameError: null,
};
handleSubmit = () => {