diff --git a/src/features/quote/Quote.jsx b/src/features/quote/Quote.jsx index 054b4b14..8be09032 100644 --- a/src/features/quote/Quote.jsx +++ b/src/features/quote/Quote.jsx @@ -220,7 +220,7 @@ class Quote extends PureComponent { ? customQuote[Math.floor(Math.random() * customQuote.length)] : null; - if (customQuote !== undefined) { + if (customQuote !== undefined && customQuote !== null) { return this.setState({ quote: '"' + customQuote.quote + '"', author: customQuote.author, @@ -467,12 +467,14 @@ class Quote extends PureComponent { ) : (