Browse Source

misc: fix dispatching actions twice when mapDispatchToProps is used

j8
Lyubo Marinov 8 years ago
parent
commit
72691eb2dc
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      react/features/toolbox/components/Toolbar.web.js

+ 2
- 2
react/features/toolbox/components/Toolbar.web.js View File

@@ -163,7 +163,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
163 163
          * @returns {Object} Dispatched action.
164 164
          */
165 165
         _onMouseOut() {
166
-            return dispatch(setToolbarHovered(false));
166
+            dispatch(setToolbarHovered(false));
167 167
         },
168 168
 
169 169
         /**
@@ -173,7 +173,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
173 173
          * @returns {Object} Dispatched action.
174 174
          */
175 175
         _onMouseOver() {
176
-            return dispatch(setToolbarHovered(true));
176
+            dispatch(setToolbarHovered(true));
177 177
         }
178 178
     };
179 179
 }

Loading…
Cancel
Save