Features/bottombar redux #97
@ -40,7 +40,7 @@ export default function(state = initialState, action: {type: any, payload: any})
|
|||||||
activeChannel: state.activeChannel + 1
|
activeChannel: state.activeChannel + 1
|
||||||
};
|
};
|
||||||
case "vertical/decreaseChannel":
|
case "vertical/decreaseChannel":
|
||||||
if (state.activeChannel == 1) {
|
if (state.activeChannel === 1) {
|
||||||
return { ...state }
|
return { ...state }
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
@ -57,12 +57,14 @@ export default function(state = initialState, action: {type: any, payload: any})
|
|||||||
if (state.timePerDivision[state.activeChannel - 1].index >= 12) {
|
if (state.timePerDivision[state.activeChannel - 1].index >= 12) {
|
||||||
return { ...state }
|
return { ...state }
|
||||||
};
|
};
|
||||||
|
break;
|
||||||
// Increase time per division
|
// Increase time per division
|
||||||
case "vertical/decreaseTimePerDivision":
|
case "vertical/decreaseTimePerDivision":
|
||||||
if (state.timePerDivision[state.activeChannel - 1].index == 0) {
|
if (state.timePerDivision[state.activeChannel - 1].index === 0) {
|
||||||
return { ...state }
|
return { ...state }
|
||||||
};
|
};
|
||||||
// Decrease time per division
|
// Decrease time per division
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user