File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ import {
87
87
88
88
const initialState = { counter: 0 };
89
89
90
- function incremenent ({ counter }) {
90
+ function increment ({ counter }) {
91
91
return { counter: counter + 1 };
92
92
}
93
93
94
- function decremenent ({ counter }) {
94
+ function decrement ({ counter }) {
95
95
return { counter: counter - 1 };
96
96
}
97
97
@@ -100,9 +100,9 @@ export default function counterStore(state = initialState, action) {
100
100
// that returns the new state when an action comes
101
101
switch (action .type ) {
102
102
case INCREMENT_COUNTER :
103
- return incremenent (state, action);
103
+ return increment (state, action);
104
104
case DECREMENT_COUNTER :
105
- return decremenent (state, action);
105
+ return decrement (state, action);
106
106
default :
107
107
return state;
108
108
}
You can’t perform that action at this time.
0 commit comments