Browse Source

Coding style

j8
Lyubo Marinov 7 years ago
parent
commit
8948c837d3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      react/features/base/participants/reducer.js

+ 3
- 3
react/features/base/participants/reducer.js View File

@@ -68,7 +68,7 @@ function _participant(state: Object = {}, action) {
68 68
         break;
69 69
 
70 70
     case PARTICIPANT_JOINED: {
71
-        const participant = action.participant; // eslint-disable-line no-shadow
71
+        const { participant } = action; // eslint-disable-line no-shadow
72 72
         const {
73 73
             avatarURL,
74 74
             connectionStatus,
@@ -114,9 +114,9 @@ function _participant(state: Object = {}, action) {
114 114
     }
115 115
 
116 116
     case PARTICIPANT_UPDATED: {
117
-        const participant = action.participant; // eslint-disable-line no-shadow
118
-        const { local } = participant;
117
+        const { participant } = action; // eslint-disable-line no-shadow
119 118
         let { id } = participant;
119
+        const { local } = participant;
120 120
 
121 121
         if (!id && local) {
122 122
             id = LOCAL_PARTICIPANT_DEFAULT_ID;

Loading…
Cancel
Save