fix: Fixes visitors count when the data is missing.
This commit is contained in:
parent
e405595a11
commit
f14b69166c
|
@ -10,7 +10,7 @@ StateListenerRegistry.register(
|
|||
conference.on(JitsiConferenceEvents.PROPERTIES_CHANGED, (properties: { 'visitor-count': number; }) => {
|
||||
const visitorCount = Number(properties?.['visitor-count']);
|
||||
|
||||
if (getState()['features/visitors'].count !== visitorCount) {
|
||||
if (!isNaN(visitorCount) && getState()['features/visitors'].count !== visitorCount) {
|
||||
dispatch(updateVisitorsCount(visitorCount));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue