Skip to content

Commit

Permalink
fix types compare bug
Browse files Browse the repository at this point in the history
  • Loading branch information
soocheng committed Jun 20, 2017
1 parent 7fb6866 commit 121d673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ducks.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const itemsById = ({
mapItemToId,
mapActionToPayload = action => action.payload,
}: ItemsByIdProps) => (state: any = {}, action: Action) => {
if (action.type === type || (types && types.indexOf(type) > -1)) {
if (action.type === type || (types && types.indexOf(action.type) > -1)) {
return {
...state,
...mapActionToPayload(action).reduce((obj, item) => {
Expand Down

0 comments on commit 121d673

Please sign in to comment.