From 46c49f4522c7bed58fd92281d47ee9716b52a918 Mon Sep 17 00:00:00 2001
From: Jymma
- {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;