From 02807a4b70f79843535892e13036fb88634f1167 Mon Sep 17 00:00:00 2001 From: tparnell Date: Mon, 10 Dec 2018 16:49:41 -0500 Subject: [PATCH] rm unused line --- Tip Calculator ocd JS/calculator.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tip Calculator ocd JS/calculator.js b/Tip Calculator ocd JS/calculator.js index 1a4ac52..9024033 100644 --- a/Tip Calculator ocd JS/calculator.js +++ b/Tip Calculator ocd JS/calculator.js @@ -23,8 +23,7 @@ function totalAmount(billTotal, selectedPer, numPpl) { let totalAmount = tipAmount + billTotal; //Does the OCD calculations by rounding the total bill amount up to make a whole number. Then taking that number and subtracting it from the total bill, which gives you a new tip amount that makes the bill total to be a whole number. let ocdTotalAmount = Math.ceil(totalAmount); - let ocdTipAmount = ocdTotalAmount - totalAmount; - let newTip = new Number((ocdTotalAmount - billTotal)).toFixed(2); + let newTip = new Number((ocdTotalAmount - billTotal).toFixed(2)); let billInfo = { prevBillTotal: billTotal,