diff --git a/src/lib/fix-item-final-price.js b/src/lib/fix-item-final-price.js index 8eca7af..456295a 100644 --- a/src/lib/fix-item-final-price.js +++ b/src/lib/fix-item-final-price.js @@ -5,9 +5,9 @@ export default item => { item.customizations.forEach(customization => { if (customization.add_to_price) { const { type, addition } = customization.add_to_price - item.final_price += type === 'percentage' - ? item.price * addition / 100 - : addition + item.final_price += type === 'fixed' + ? addition + : item.price * addition / 100 } }) }