Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(visitors): Fixes clearing promotion requests.

damencho35bc43054924
diff --git a/react/features/visitors/reducer.ts b/react/features/visitors/reducer.ts
index c9c209bc04..d02e622b94 100644
--- a/react/features/visitors/reducer.ts
+++ b/react/features/visitors/reducer.ts
@@ -53,11 +53,9 @@ ReducerRegistry.register<IVisitorsState>('features/visitors', (state = DEFAULT_S
case VISITOR_PROMOTION_REQUEST: {
const currentRequests = state.promotionRequests || [];
- currentRequests.push(action.request);
-
return {
...state,
- promotionRequests: [ ...currentRequests ]
+ promotionRequests: [ ...currentRequests, action.request ]
};
}
case CLEAR_VISITOR_PROMOTION_REQUEST: {