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
         break;
68
         break;
69
 
69
 
70
     case PARTICIPANT_JOINED: {
70
     case PARTICIPANT_JOINED: {
71
-        const participant = action.participant; // eslint-disable-line no-shadow
71
+        const { participant } = action; // eslint-disable-line no-shadow
72
         const {
72
         const {
73
             avatarURL,
73
             avatarURL,
74
             connectionStatus,
74
             connectionStatus,
114
     }
114
     }
115
 
115
 
116
     case PARTICIPANT_UPDATED: {
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
         let { id } = participant;
118
         let { id } = participant;
119
+        const { local } = participant;
120
 
120
 
121
         if (!id && local) {
121
         if (!id && local) {
122
             id = LOCAL_PARTICIPANT_DEFAULT_ID;
122
             id = LOCAL_PARTICIPANT_DEFAULT_ID;

Loading…
Cancel
Save