🐛 Fix bug where a condition was wrong-false

This commit is contained in:
Raphael Bernhart 2022-01-21 17:22:30 +01:00
parent cd19b9fc49
commit 0313acd4c5

View file

@ -190,7 +190,7 @@ export default {
previous.classList.toggle("active-sibling");
}
// Check if Next Sibling is heartbar element and doesn't have the empty class
if (next.children && next.classList.contains("empty")) {
if (next.children && !next.classList.contains("empty")) {
next.classList.toggle("active-sibling");
}
}