Build a Random Quote Machineee

Hello guys. So i am making this quote Machine and i have one problem. When someone clicks on button New Quote I am getting all quotes from API it wont stop on just one. You can see problem here ==> https://s.codepen.io/boomerang/iFrameKey-0b5db542-f70e-624a-c1ce-691d490c64e6/index.html

And my pen is https://codepen.io/zumra96/pen/qrQYYX
Ty all.

Hey @Zumra,
my suggestion is to call the API as the page loads and save the quotes in a global data type. Then, when the user clicks the button, you pull a quote out of that data type. Make sure to remove the quote from the data type.

That will solve your problem.