@@ -17,7 +17,6 @@ interface ProductOption {
1717
1818interface Data {
1919 productId : string ;
20- sku : string ;
2120 quantity : number ;
2221 selectedOptions : ProductOption [ ] ;
2322}
@@ -27,13 +26,12 @@ export const useAddToQuote = () => {
2726 const [ isAddingToQuote , setLoading ] = useState ( false ) ;
2827 const sdk = useSDK ( ) ;
2928
30- const addProductsToQuote = async ( { selectedOptions, productId, quantity, sku } : Data ) => {
29+ const addProductsToQuote = async ( { selectedOptions, productId, quantity } : Data ) => {
3130 setLoading ( true ) ;
3231
3332 try {
3433 await sdk ?. utils ?. quote ?. addProducts ( [
3534 {
36- sku,
3735 productEntityId : Number ( productId ) ,
3836 quantity,
3937 selectedOptions : selectedOptions . map ( mapToB2BProductOptions ) ,
@@ -56,12 +54,11 @@ export const useAddToShoppingList = () => {
5654 const [ isAddingToShoppingList , setLoading ] = useState ( false ) ;
5755 const sdk = useSDK ( ) ;
5856
59- const addProductToShoppingList = async ( { selectedOptions, productId, quantity, sku } : Data ) => {
57+ const addProductToShoppingList = async ( { selectedOptions, productId, quantity } : Data ) => {
6058 setLoading ( true ) ;
6159
6260 try {
6361 await sdk ?. utils ?. shoppingList ?. addProductFromPage ( {
64- sku,
6562 productEntityId : Number ( productId ) ,
6663 quantity,
6764 selectedOptions : selectedOptions . map ( mapToB2BProductOptions ) ,
0 commit comments