diff --git a/src/store/slices/productSlice.ts b/src/store/slices/productSlice.ts index a757126b0..1ebf4de28 100644 --- a/src/store/slices/productSlice.ts +++ b/src/store/slices/productSlice.ts @@ -49,7 +49,7 @@ const productSlice = createSlice( state.productList.unshift(action.payload); }, addProductsToList(state, action: PayloadAction) { - state.productList.push(...action.payload); + state.productList = action.payload; }, cleanProductList(state) { state.productList = [];