diff --git a/client/js/app.js b/client/js/app.js index dae7ac5..d6ae2d1 100755 --- a/client/js/app.js +++ b/client/js/app.js @@ -12,7 +12,7 @@ const calcReducer = (state = { result: 0 }, action) => { case 'ADD': return Object.assign({}, state, { result: state.result + action.value}); case 'SUBTRACT': - return { ...state, result: state.result + action.value }; + return { ...state, result: state.result - action.value }; default: return state; }