Fixing all cups selected bug
This commit is contained in:
parent
2c455d26f3
commit
4664cb02b2
@ -11,7 +11,7 @@ smallCups.forEach((cup, idx) => {
|
|||||||
|
|
||||||
function highlightCups(idx) {
|
function highlightCups(idx) {
|
||||||
if (idx===7 && smallCups[idx].classList.contains("full")) idx--;
|
if (idx===7 && smallCups[idx].classList.contains("full")) idx--;
|
||||||
if(smallCups[idx].classList.contains('full') && !smallCups[idx].nextElementSibling.classList.contains('full')) {
|
else if(smallCups[idx].classList.contains('full') && !smallCups[idx].nextElementSibling.classList.contains('full')) {
|
||||||
idx--
|
idx--
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user