From 8948c837d325d4afce4cb7ab19e6290d7af0f28a Mon Sep 17 00:00:00 2001 From: Lyubo Marinov Date: Wed, 18 Oct 2017 13:21:46 -0500 Subject: [PATCH] Coding style --- react/features/base/participants/reducer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/react/features/base/participants/reducer.js b/react/features/base/participants/reducer.js index 01b70a27e..aa40e4449 100644 --- a/react/features/base/participants/reducer.js +++ b/react/features/base/participants/reducer.js @@ -68,7 +68,7 @@ function _participant(state: Object = {}, action) { break; case PARTICIPANT_JOINED: { - const participant = action.participant; // eslint-disable-line no-shadow + const { participant } = action; // eslint-disable-line no-shadow const { avatarURL, connectionStatus, @@ -114,9 +114,9 @@ function _participant(state: Object = {}, action) { } case PARTICIPANT_UPDATED: { - const participant = action.participant; // eslint-disable-line no-shadow - const { local } = participant; + const { participant } = action; // eslint-disable-line no-shadow let { id } = participant; + const { local } = participant; if (!id && local) { id = LOCAL_PARTICIPANT_DEFAULT_ID;