There was an error while loading. Please reload this page.
1 parent 6d30325 commit 742b583Copy full SHA for 742b583
src/containers/InputSet.js
@@ -32,7 +32,8 @@ class InputSet extends Component {
32
}
33
34
// Function for when 'search' is clicked and retrieves movies
35
- handleResponse(input) {
+ handleResponse() {
36
+ const { input } = this.state;
37
const { retrieveMovies } = this.props;
38
retrieveMovies(input);
39
@@ -44,9 +45,8 @@ class InputSet extends Component {
44
45
46
// Function for 'enter' key press
47
handleKeyPress(target) {
- const { input } = this.state;
48
if(target.charCode===13){
49
- this.handleResponse(input);
+ this.handleResponse();
50
51
52
0 commit comments