From 075ccb02ac9990447e642f5680720bf154e47ea3 Mon Sep 17 00:00:00 2001 From: ardhi Date: Tue, 18 Oct 2022 04:22:06 +0700 Subject: [PATCH] fix cash in --- src/views/Dashboard/DashboardProject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index d6130a6..3b6da19 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -242,7 +242,7 @@ const DashboardProject = () => { let cash_in = result.data.data.data.total_invoice_paid_amount; let outstanding_balance = total_invoice - cash_in; setTotalInvoice(total_invoice ? total_invoice.toString() : null); - setCashIn(cash_in ? total_invoice.toString() : null) + setCashIn(cash_in ? cash_in.toString() : null) setOutstandingBalance(outstanding_balance ? outstanding_balance.toString() : null); } setIsReadyIntegrationInvoice(true);