Skip to content

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

color-scheme: fix React warning

Saúl Ibarra Corretgé8ea693616d01
diff --git a/react/features/base/color-scheme/reducer.js b/react/features/base/color-scheme/reducer.js
index 7e0939bd04..c61baf221c 100644
--- a/react/features/base/color-scheme/reducer.js
+++ b/react/features/base/color-scheme/reducer.js
@@ -14,7 +14,7 @@ import { SET_COLOR_SCHEME } from './actionTypes';
ReducerRegistry.register('features/base/color-scheme', (state = {}, action) => {
switch (action.type) {
case SET_COLOR_SCHEME:
- return _.cloneDeep(action.colorScheme);
+ return _.cloneDeep(action.colorScheme) || state;
}
return state;