IO-1273 Resolve dashboard error 2

This commit is contained in:
Patrick Fic
2021-07-28 16:31:32 -07:00
parent 46ddc440fe
commit ae8a924cd6

View File

@@ -15,7 +15,11 @@ export default function DashboardProjectedMonthlySales({ data, ...cardProps }) {
data.projected_monthly_sales.reduce(
(acc, val) =>
acc.add(
Dinero(val.job_totals.totals && val.job_totals.totals.subtotal)
Dinero(
val.job_totals &&
val.job_totals.totals &&
val.job_totals.totals.subtotal
)
),
Dinero()
);