diff --git a/homepage/quotes.js b/homepage/quotes.js index 61991c4..b6438e3 100644 --- a/homepage/quotes.js +++ b/homepage/quotes.js @@ -26,7 +26,7 @@ window.setStyling = function(sheet) { window.genQuote = function() { if(window.quote) window.quotes.push(window.quote); quoteindex = Math.floor(Math.random() * window.quotes.length); - window.quote = window.quotes.splice(quoteindex, 1); + window.quote = window.quotes.splice(quoteindex, 1)[0]; console.log("Quote set to:"); console.log(window.quote); console.log(window.quotes);