fix(go-live): waiting not updated correctly.

We were comparing if the number of waiting participants have changed with the wrong property from the state - the number of visitors. The result was that we won't update the state when the new waiting value matches the number of visitors already in the state. Most of the times this will be 0 and we would never go to 0.
This commit is contained in:
Hristo Terezov
2025-07-15 19:42:34 -05:00
parent 40ce690b4b
commit 111ff5d10b

View File

@@ -63,7 +63,7 @@ ReducerRegistry.register<IVisitorsState>('features/visitors', (state = DEFAULT_S
};
}
case UPDATE_VISITORS_IN_QUEUE_COUNT: {
if (state.count === action.count) {
if (state.inQueueCount === action.count) {
return state;
}