From bf20f679068adcee215d55c29ceaa285d294d746 Mon Sep 17 00:00:00 2001 From: John Katsnelson Date: Fri, 13 Jul 2018 16:56:22 -0700 Subject: [PATCH] use defaultState to set initial count to 1 I assumed the intention here was to use the defaultState variable to set the default state of the store, so I filled it in :) --- frontend/store.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/store.tsx b/frontend/store.tsx index 64cb868..cc905ef 100644 --- a/frontend/store.tsx +++ b/frontend/store.tsx @@ -21,8 +21,6 @@ const store = Redux.createStore((state: State, action: Action): State => { return { ...state, counter: state.counter - 1 }; } return state; -}, { - counter: 0 -}); +}, defaultState); export default store;