Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Иван Лайер committed Oct 29, 2024
1 parent 559942b commit 80695cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/slices/productSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const productSlice = createSlice(
state.productList.unshift(action.payload);
},
addProductsToList(state, action: PayloadAction<Product[]>) {
state.productList.push(...action.payload);
state.productList = action.payload;
},
cleanProductList(state) {
state.productList = [];
Expand Down

0 comments on commit 80695cb

Please sign in to comment.