Merge pull request #49 from rbajaj1997/master
[Bug Fix] Error on deselecting last cup in project 16
This commit is contained in:
commit
4dd2f9dd57
@ -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--
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user