Fixed endless error
Handled the error if user input is undefined or just an empty string (which causes an endless error)
This commit is contained in:
parent
0cb9fd377d
commit
4191c02d62
@ -34,11 +34,13 @@ function randomSelect() {
|
||||
const interval = setInterval(() => {
|
||||
const randomTag = pickRandomTag()
|
||||
|
||||
if (randomTag !== undefined) {
|
||||
highlightTag(randomTag)
|
||||
|
||||
setTimeout(() => {
|
||||
unHighlightTag(randomTag)
|
||||
}, 100)
|
||||
}
|
||||
}, 100);
|
||||
|
||||
setTimeout(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user