misc: fix dispatching actions twice when mapDispatchToProps is used

This commit is contained in:
Lyubo Marinov 2017-07-17 13:59:04 -05:00
parent 0bf9a78e4c
commit 72691eb2dc
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}
};
}