From 702144180cd97032103c4215c033ecfa61556bbf Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Sat, 25 Feb 2017 19:00:35 -0600 Subject: [PATCH] Be consistent, simplify the source code --- react/features/base/lib-jitsi-meet/reducer.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/react/features/base/lib-jitsi-meet/reducer.js b/react/features/base/lib-jitsi-meet/reducer.js index b123acad0..10d934d51 100644 --- a/react/features/base/lib-jitsi-meet/reducer.js +++ b/react/features/base/lib-jitsi-meet/reducer.js @@ -11,8 +11,7 @@ import { * The initial state of 'features/base/lib-jitsi-meet'. * * @type {{ - * initializationError: null, - * initialized: boolean + * config: Object * }} */ const INITIAL_STATE = { @@ -40,9 +39,7 @@ const INITIAL_STATE = { // third parties and we can temporarily disable them (until we implement // an alternative to async script elements on React Native). disableThirdPartyRequests: true - }, - initializationError: null, - initialized: false + } }; ReducerRegistry.register( @@ -55,14 +52,14 @@ ReducerRegistry.register( case LIB_INIT_ERROR: return { ...state, - initializationError: action.error, + initError: action.error, initialized: false }; case LIB_INITIALIZED: return { ...state, - initializationError: null, + initError: undefined, initialized: true };