I’ve completed my Random Quote Machine project here: https://codepen.io/ttstauss/details/mGOyra/
I can’t seem to get it to pass test case #9:
- My quote machine should fetch the new quote’s author when the #new-quote button is clicked and display it in the #author element.
I thought it might be due to the author being the same for each quote, but I tested it with different authors and still had no luck passing.
In summary, after the component mounts or after the user clicks the new quote button, a random index is generated to select from an array of objects (each object has a quote and author prop). The appropriate props are then set to state.
Any ideas why this won’t pass?