Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

misc: fix dispatching actions twice when mapDispatchToProps is used

Lyubo Marinov72691eb2dcbe
diff --git a/react/features/toolbox/components/Toolbar.web.js b/react/features/toolbox/components/Toolbar.web.js
index 6f61d212a0..ecb11cf087 100644
--- a/react/features/toolbox/components/Toolbar.web.js
+++ b/react/features/toolbox/components/Toolbar.web.js
@@ -163,7 +163,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
* @returns {Object} Dispatched action.
*/
_onMouseOut() {
- return dispatch(setToolbarHovered(false));
+ dispatch(setToolbarHovered(false));
},
/**
@@ -173,7 +173,7 @@ function _mapDispatchToProps(dispatch: Function): Object {
* @returns {Object} Dispatched action.
*/
_onMouseOver() {
- return dispatch(setToolbarHovered(true));
+ dispatch(setToolbarHovered(true));
}
};
}