Fixing all cups selected bug

This commit is contained in:
Rohit Bajaj 2021-01-23 22:38:36 +05:30 committed by GitHub
parent 2c455d26f3
commit 4664cb02b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ smallCups.forEach((cup, idx) => {
function highlightCups(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--
}