diff --git a/src/App.js b/src/App.js index b35a463..fe8a4cf 100644 --- a/src/App.js +++ b/src/App.js @@ -267,7 +267,7 @@ function App() { -

Suggestions based on your search

+ {sectionResultsList &&

Suggestions based on your search

}
{sectionResultsList}
diff --git a/src/components/SearchResult.js b/src/components/SearchResult.js index c211e6f..fad0b85 100644 --- a/src/components/SearchResult.js +++ b/src/components/SearchResult.js @@ -4,7 +4,7 @@ function SearchResult({ data }) { return (
  • - ({data.lang.code}) {data.title} by {data.author ? data.author : "Unknown Author"} + ({data.lang.code}) {data.title}{data.author ? ` by ${data.author}` : ""}
  • );