Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into dev
  • Loading branch information
kathir-arizon committed Jan 18, 2025
2 parents ed80c0a + 541bdfc commit de77497
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ export default function BulkPricing({ product }: BulkPricingProps) {
let discountText = '';

if ('price' in pricing) {
discountText = `${formatCurrency(pricing.price)} off`;
discountText = `${formatCurrency(pricing.price)} `;
} else if ('percentOff' in pricing) {
discountText = `${pricing.percentOff.toFixed(2)}% off`;
} else if ('priceAdjustment' in pricing) {
discountText = `${formatCurrency(Number(pricing.priceAdjustment))} off`;
discountText = `${formatCurrency(Number(pricing.priceAdjustment))} `;
}

return (
<li key={index} className="text-gray-700">
• Buy {pricing.minimumQuantity} - {pricing.maximumQuantity || 'above'} and pay {discountText} each
• Buy {pricing.minimumQuantity} {pricing.maximumQuantity ? '-' : 'or'} {pricing.maximumQuantity || 'above'} and pay only {discountText} each
</li>
);
});
Expand Down

0 comments on commit de77497

Please sign in to comment.