diff --git a/src/App.jsx b/src/App.jsx index 60893c7..e552f54 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -73,8 +73,7 @@ function App() {
- {formatMoney(pay)}Monthly + {formatMoney(pay)} Monthly
diff --git a/src/helpers/index.js b/src/helpers/index.js index ad1b739..bb3e82f 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -19,9 +19,9 @@ const calculateTotalPay = (amount, term) => { total = amount * 1.2; } - if (term === 6) { + if (term === "6") { total *= 1.1; - } else if (term === 12) { + } else if (term === "12") { total *= 1.2; } else { total *= 1.3;