diff --git a/frontend/src/app/shared/common.ts b/frontend/src/app/shared/common.ts index a8f1e975bb..b77d641991 100644 --- a/frontend/src/app/shared/common.ts +++ b/frontend/src/app/shared/common.ts @@ -46,7 +46,7 @@ export function isLastCheckInNegative(baseline: number, stretchGoal: number, val } export function calculateCurrentPercentage(keyResultMetric: KeyResultMetricMin): number { - const value: number = +keyResultMetric.lastCheckIn!.value!; + const value: number = +keyResultMetric.lastCheckIn?.value!; const baseline: number = +keyResultMetric.baseline; const stretchGoal: number = +keyResultMetric.stretchGoal; if (isLastCheckInNegative(baseline, stretchGoal, value)) {