Fix variable name error in indicator sets

This commit is contained in:
Andrew Kingston 2024-08-13 09:19:16 +01:00
parent 73cc871a5e
commit 78953848bb
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -67,14 +67,14 @@
}
const createIntersectionCallback = idx => entries => {
if (callbackCount >= observers.length) {
if (callbackCount >= intersectionObservers.length) {
return
}
nextState.indicators[idx].visible =
nextState.indicators[idx].insideModal ||
nextState.indicators[idx].insideSidePanel ||
entries[0].isIntersecting
if (++callbackCount === observers.length) {
if (++callbackCount === intersectionObservers.length) {
state = nextState
updating = false
}