score:0

Accepted answer
 setChosenQuote(allQuotes[quoteIndex]);
    setText(allQuotes[quoteIndex].quote);
    setAuthor(allQuotes[quoteIndex].author);

Related Query

More Query from same tag