From afe9a7727af6e25a81ee5704ba842d19d85424e9 Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Wed, 8 Mar 2017 21:12:36 -0800 Subject: [PATCH] Fixed transaction donation bar showing full when actually empty --- Teknik/Areas/Status/Views/Status/Transactions.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Teknik/Areas/Status/Views/Status/Transactions.cshtml b/Teknik/Areas/Status/Views/Status/Transactions.cshtml index 6735c58..876bb42 100644 --- a/Teknik/Areas/Status/Views/Status/Transactions.cshtml +++ b/Teknik/Areas/Status/Views/Status/Transactions.cshtml @@ -5,7 +5,7 @@ @{ decimal totalBills = Model.CurrentMonthBills; decimal totalIncome = Model.CurrentMonthIncome; - int incomePercentage = 100; + int incomePercentage = 0; if (totalIncome != 0 && totalBills != 0) { incomePercentage = (int)Math.Min(Math.Floor((totalIncome / totalBills) * 100), 100);