diff --git a/src/emails/functions/reduceSanitizedDataPoints.ts b/src/emails/functions/reduceSanitizedDataPoints.ts index 3f279c1a89..9877296516 100644 --- a/src/emails/functions/reduceSanitizedDataPoints.ts +++ b/src/emails/functions/reduceSanitizedDataPoints.ts @@ -8,11 +8,8 @@ import { SanitizedDataPoints } from "../../app/functions/server/dashboard"; export function calculateSanitizedDataPoints( data: SanitizedDataPoints, ): number { - return data.reduce( - (accumulatedValue: number, currentDataPoint: Record) => { - const dataPointValue = Object.values(currentDataPoint)[0] as number; - return accumulatedValue + dataPointValue; - }, - 0, - ); + return data.reduce((accumulatedValue, currentDataPoint) => { + const dataPointValue = Object.values(currentDataPoint)[0] as number; + return accumulatedValue + dataPointValue; + }, 0); }