Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-fs committed Mar 8, 2020
1 parent 5308a85 commit 4ce2c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reducers/cart.ts
Expand Up @@ -30,7 +30,7 @@ const cartReducer = (state = initialState, action: CartActionTypes) : CartState
}
case VIEW_CART:
return {
// sort without mutating mutating the previous state
// sort without mutating the previous state
products: state.products.slice().sort(sortByTitle),
}
case CHECKOUT_CART:
Expand Down

0 comments on commit 4ce2c57

Please sign in to comment.