From 118556b54c78e40a8cffd23d9d7b3df1f2797f7f Mon Sep 17 00:00:00 2001 From: EL YOUBI Date: Thu, 16 Mar 2017 15:45:25 +0100 Subject: [PATCH] fix loadingTime type toFixed returns string thus loadingTime is throwing a warning Either this change, or add a parseFloat in loadingTime calculation --- episode1/src/components/ContactsApp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/episode1/src/components/ContactsApp.js b/episode1/src/components/ContactsApp.js index 10741e6..03a5ac5 100644 --- a/episode1/src/components/ContactsApp.js +++ b/episode1/src/components/ContactsApp.js @@ -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) => {