Skip to content

Commit

Permalink
fix loadingTime type
Browse files Browse the repository at this point in the history
toFixed returns string thus loadingTime is throwing a warning
Either this change, or add a parseFloat in loadingTime calculation
  • Loading branch information
youbiak authored Mar 16, 2017
1 parent 0103151 commit 118556b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions episode1/src/components/ContactsApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class ContactsApp extends Component {
static propTypes = {
contacts: PropTypes.arrayOf(
PropTypes.shape({
thumbnail: React.PropTypes.string.isRequired,
name: React.PropTypes.string.isRequired,
email: React.PropTypes.string
thumbnail: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
email: PropTypes.string
})
).isRequired,
loadingTime: PropTypes.number
loadingTime: PropTypes.string
}

handleUserInput = (searchTerm) => {
Expand Down

0 comments on commit 118556b

Please sign in to comment.