Skip to content

Commit

Permalink
remove now useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiosilveira committed Aug 20, 2022
1 parent f08c850 commit 446ff41
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion function.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
function price(order) {
// price is base price - quantity discount + shipping
const basePrice = order.quantity * order.itemPrice;
const quantityDiscount = Math.max(0, order.quantity - 500) * order.itemPrice * 0.05;
const shipping = Math.min(basePrice * 0.1, 100);
Expand Down

0 comments on commit 446ff41

Please sign in to comment.