From 0aaeb16ea7eda0fecd9be40c4a121a1cf67b4f61 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 27 Jun 2023 09:17:22 +0700 Subject: [PATCH] Fix health by budget --- src/views/Dashboard/Components/index.js | 2 +- src/views/Dashboard/DashboardBOD.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Dashboard/Components/index.js b/src/views/Dashboard/Components/index.js index ab99df1..68afd54 100644 --- a/src/views/Dashboard/Components/index.js +++ b/src/views/Dashboard/Components/index.js @@ -106,7 +106,7 @@ export const HealthByBudget = ({status}) => { let bgColor = '#52AC0B'; // on-budget if (status && status !== '-') { if (status === 'warning') bgColor = '#ED7014'; - else if (status === 'danger') bgColor = '#D0312D'; + else if (status === 'overrun') bgColor = '#D0312D'; } return (
diff --git a/src/views/Dashboard/DashboardBOD.js b/src/views/Dashboard/DashboardBOD.js index 9f8c8f7..fff92ef 100644 --- a/src/views/Dashboard/DashboardBOD.js +++ b/src/views/Dashboard/DashboardBOD.js @@ -347,7 +347,7 @@ const DashboardBOD = () => { "invoice": item.invoice?.invoiced ? toRupiah(item.invoice.invoiced) : '-', "cash_in": item.invoice?.paid ? toRupiah(item.invoice.paid) : '-', "outstanding_balance": outstanding_balance, - "budget": , + "budget": , "schedule": }) });