Skip to content

Commit 118556b

Browse files
authored
fix loadingTime type
toFixed returns string thus loadingTime is throwing a warning Either this change, or add a parseFloat in loadingTime calculation
1 parent 0103151 commit 118556b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

episode1/src/components/ContactsApp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ class ContactsApp extends Component {
1313
static propTypes = {
1414
contacts: PropTypes.arrayOf(
1515
PropTypes.shape({
16-
thumbnail: React.PropTypes.string.isRequired,
17-
name: React.PropTypes.string.isRequired,
18-
email: React.PropTypes.string
16+
thumbnail: PropTypes.string.isRequired,
17+
name: PropTypes.string.isRequired,
18+
email: PropTypes.string
1919
})
2020
).isRequired,
21-
loadingTime: PropTypes.number
21+
loadingTime: PropTypes.string
2222
}
2323

2424
handleUserInput = (searchTerm) => {

0 commit comments

Comments
 (0)