diff --git a/src/Book.js b/src/Book.js index 3aa094b..a5b25ab 100644 --- a/src/Book.js +++ b/src/Book.js @@ -2,10 +2,15 @@ import React from 'react' class Book extends React.Component { render() { + let image, title, authors + this.props.book.imageLinks ? image = this.props.book.imageLinks.smallThumbnail : image = '' + this.props.book.title ? title = this.props.book.title : title = 'No title available' + this.props.book.authors ? authors = this.props.book.authors : authors = 'No authors available' + return (