Skip to content

Commit

Permalink
Fixed intial state
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkk3n committed May 29, 2023
1 parent 3c29eaf commit f6beda9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reducers/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const cartReducer = (state, action) => {
return newState
}
case CART_ACTION_TYPES.CLEAR_CART: {
updateLocalStorage(cartInitialState)
return cartInitialState;
updateLocalStorage([])
return [];
}
}

Expand Down

0 comments on commit f6beda9

Please sign in to comment.