Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from jkatsnelson/patch-1
Browse files Browse the repository at this point in the history
use defaultState to set initial count to 1
  • Loading branch information
handicraftsman committed Jul 16, 2018
2 parents 4ccd5a3 + bf20f67 commit 1557c2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/store.tsx
Expand Up @@ -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;

0 comments on commit 1557c2a

Please sign in to comment.