misc: fix dispatching actions twice when mapDispatchToProps is used

The functions need not return anything, or it will be dispatched as another
action.
This commit is contained in:
Saúl Ibarra Corretgé
2017-07-17 17:33:49 +02:00
committed by Lyubo Marinov
parent 0c446026d6
commit 0bf9a78e4c
5 changed files with 12 additions and 12 deletions

View File

@@ -268,7 +268,7 @@ function _mapDispatchToProps(dispatch) {
* @type {Function}
*/
_onRoomLock() {
return dispatch(beginRoomLockRequest());
dispatch(beginRoomLockRequest());
},
/**
@@ -279,7 +279,7 @@ function _mapDispatchToProps(dispatch) {
* @type {Function}
*/
_onShareRoom() {
return dispatch(beginShareRoom());
dispatch(beginShareRoom());
},
/**
@@ -290,7 +290,7 @@ function _mapDispatchToProps(dispatch) {
* @type {Function}
*/
_onToggleAudioOnly() {
return dispatch(toggleAudioOnly());
dispatch(toggleAudioOnly());
},
/**
@@ -302,7 +302,7 @@ function _mapDispatchToProps(dispatch) {
* @type {Function}
*/
_onToggleCameraFacingMode() {
return dispatch(toggleCameraFacingMode());
dispatch(toggleCameraFacingMode());
}
};
}