summary count solved

This commit is contained in:
Senthamilselvi 2025-11-06 10:22:22 +05:30
parent 45cb819bf8
commit 67bc865852

View File

@ -30,14 +30,14 @@ const AdminDashboard = () => {
setLoading(true);
const response = await apiClient.get('/admin_dashboard');
const data = response?.data?.summary || {};
const notStartedCombined = (data.not_started || 0) + (data.overdue || 0);
// const notStartedCombined = (data.not_started || 0) + (data.overdue || 0);
setSummary({
total_establishments: data.total_establishments || 0,
submitted: data.submitted || 0,
approved: data.approved || 0,
rejected: data.rejected || 0,
not_started: notStartedCombined,
not_started: data.not_started || 0,
pending: data.pending || 0,
});
} catch (error) {