From 49790ef085a16d76bbe2a301f311a804700ea338 Mon Sep 17 00:00:00 2001 From: Dennis Jen Date: Thu, 17 Jan 2019 14:20:04 -0500 Subject: [PATCH] Fixed error when pressing "Enter" in SingleRegistrationWrapper --- .../SingleRegistrationWrapper/SingleRegistrationWrapper.js | 2 +- client/app/constants/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app/components/SingleRegistrationWrapper/SingleRegistrationWrapper.js b/client/app/components/SingleRegistrationWrapper/SingleRegistrationWrapper.js index e6d5f2ec..57318b36 100644 --- a/client/app/components/SingleRegistrationWrapper/SingleRegistrationWrapper.js +++ b/client/app/components/SingleRegistrationWrapper/SingleRegistrationWrapper.js @@ -6,7 +6,7 @@ import Loader from 'components/Loader/Loader'; class SingleRegistrationWrapper extends Component { handleKeyPress = (e) => { if (e.key === 'Enter') { - this.checkAndDispatch(e); + this.props.checkAndDispatch(e); } } diff --git a/client/app/constants/index.js b/client/app/constants/index.js index 95077423..818a3c5e 100644 --- a/client/app/constants/index.js +++ b/client/app/constants/index.js @@ -18,6 +18,6 @@ export const DELETE_USER_REQUEST = 'DELETE_USER_REQUEST'; export const DELETE_USER_SUCCESS = 'DELETE_USER_SUCCESS'; export const DELETE_USER_FAILURE = 'DELETE_USER_FAILURE'; -export const VERSION = 'v1.8.2'; +export const VERSION = 'v1.8.3'; export const API_URL = ''; // process.env.NODE_ENV === 'production' ? '': 'http://localhost:5000/'