fixed bugs reports

This commit is contained in:
AmirHossein Mahmoodi
2024-01-23 12:00:19 +03:30
parent dcf5bb3a0c
commit e08d7b2be0

View File

@@ -25,7 +25,7 @@ const ReferredCharts = ({reportList}) => {
</Box>
<Grid container sx={{width: "100%"}}>
{innerObject.map((item, index) => {
let percentage = item.total_amount !== 0 ? item.total_amount / innerObject.total_budget * 100 : 0;
let percentage = item.total_budget !== 0 ? item.total_amount / item.total_budget * 100 : 0;
return (
<Grid key={index} item xs={12} md={6} sx={{textAlign: "center"}}>
<Box>