Replies: 1 comment 2 replies
-
I won't pass critic/review on the way you do things there, because there are certainly easier ways, with less cognitive load. But there's a typo: if (arrayIndex === quotes.lenght) { // <--- here
console.log("We are done!");
clearInterval(myIntervals);
arrayIndex = 0;
} Should be |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Error:
Code in this link:
https://github.com/Elindo586/estuff/blob/main/app/main-campaign/page.js
^^ This code has been working fine, and still does the job, but apparently isn't clearing the intervals and trying to read another item, but there is no other item to read?
It should be giving me a
"We are done!"
console.log, but instead I am getting that error above.... Why could it be?Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions