diff --git a/frontend/src/pages/Products/Products.js b/frontend/src/pages/Products/Products.js index 13dbbe9..20e7501 100644 --- a/frontend/src/pages/Products/Products.js +++ b/frontend/src/pages/Products/Products.js @@ -142,13 +142,13 @@ const Products = () => { const productData = { productId: sharedProduct.id, // Link to the shared product customName: sharedProduct.name, // Use the shared product's name as default - customBrand: sharedProduct.brand, + brand: sharedProduct.brand, categoryId: null, // Will use the shared product's category - customProductType: sharedProduct.productType, - customActiveIngredients: sharedProduct.activeIngredients, - customDescription: sharedProduct.description, + productType: sharedProduct.productType, + activeIngredients: sharedProduct.activeIngredients, + description: sharedProduct.description, // Set default rate if available - customRateAmount: sharedProduct.rates?.[0]?.rateAmount || '', + customRateAmount: sharedProduct.rates?.[0]?.rateAmount || null, customRateUnit: sharedProduct.rates?.[0]?.rateUnit || (sharedProduct.productType === 'granular' ? 'lbs/1000 sq ft' : 'oz/1000 sq ft'), notes: `Added from shared product: ${sharedProduct.name}` };