Further cleanup of components for subscription use

This commit is contained in:
Patrick Fic
2019-12-11 18:50:48 -08:00
parent f333301f67
commit 3c3f1e8650
6 changed files with 7 additions and 12 deletions

View File

@@ -12,16 +12,12 @@ class SignInForm extends React.Component {
handleSubmit = e => {
e.preventDefault();
const { apolloClient } = this.props;
this.props.form.validateFields(async (err, values) => {
if (!err) {
const { email, password } = values;
try {
const { user } = await auth.signInWithEmailAndPassword(
email,
password
);
await auth.signInWithEmailAndPassword(email, password);
this.props.form.resetFields();
} catch (error) {