Skip to content

Commit

Permalink
fixed year ref issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spcbrn committed Oct 3, 2017
1 parent 9789e49 commit 345090b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ nameSearch() {
}

byYear() {
let year = this.refs.year.value;
let year = this.refs.searchYear.value;
console.log(year)
// axios (GET)
// setState with response -> vehiclesToDisplay
Expand Down Expand Up @@ -261,7 +261,7 @@ resetData(dataToReset) {
type="text"
ref='searchLetters'/>
<input
ref='year'
ref='searchYear'
className='btn-sp'
type='number'
placeholder='Year'/>
Expand Down

0 comments on commit 345090b

Please sign in to comment.