From 69ddb1e989e26eb93da5812eaa671ca0b01ad21d Mon Sep 17 00:00:00 2001 From: Ken Jannette Date: Fri, 20 Apr 2018 18:00:02 -0400 Subject: [PATCH] Added ternary for authors property in results displayed on SearchPage --- src/SearchPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SearchPage.js b/src/SearchPage.js index 724d39a..88529cb 100644 --- a/src/SearchPage.js +++ b/src/SearchPage.js @@ -54,7 +54,7 @@ class SearchPage extends Component {
{result.title}
-
{result.authors}
+
{result.authors ? result.authors : ''}
})