diff --git a/src/pages/User/Login.js b/src/pages/User/Login.js index 1987c639a417eb6b9a1821a0df5f7cbc7d77776e..6ddece46d54cd48b46251539b34a3c3efb700959 100644 --- a/src/pages/User/Login.js +++ b/src/pages/User/Login.js @@ -100,7 +100,10 @@ class LoginPage extends Component { message: formatMessage({ id: 'validation.password.required' }), }, ]} - onPressEnter={(e) => {e.preventDefault();this.loginForm.validateFields(this.handleSubmit)}} + onPressEnter={e => { + e.preventDefault(); + this.loginForm.validateFields(this.handleSubmit); + }} />