chore: rename total_average_weight to average_weight_kg in SalesSummary

This commit is contained in:
ValdiANS
2026-01-21 09:31:21 +07:00
parent afbb007309
commit ead338fa0f
2 changed files with 2 additions and 2 deletions
@@ -125,7 +125,7 @@ const DailyMarketingsTable = ({
cell: (props) => formatNumber(props.row.original.average_weight_kg),
footer: () => {
const totalAverageWeightKg = isResponseSuccess(dailyMarketings)
? dailyMarketings?.total?.total_average_weight
? dailyMarketings?.total?.average_weight_kg
: 0;
return totalAverageWeightKg ? formatNumber(totalAverageWeightKg) : '-';