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(screenshot-capture) Add initial state (#10827)

Robert Pintilii676d7f2b933d
diff --git a/react/features/screenshot-capture/reducer.js b/react/features/screenshot-capture/reducer.js
index 6a5f8760ef..cb408f891d 100644
--- a/react/features/screenshot-capture/reducer.js
+++ b/react/features/screenshot-capture/reducer.js
@@ -8,7 +8,11 @@ PersistenceRegistry.register('features/screnshot-capture', true, {
capturesEnabled: false
});
-ReducerRegistry.register('features/screenshot-capture', (state = {}, action) => {
+const DEFAULT_STATE = {
+ capturesEnabled: false
+};
+
+ReducerRegistry.register('features/screenshot-capture', (state = DEFAULT_STATE, action) => {
switch (action.type) {
case SET_SCREENSHOT_CAPTURE: {
return {