Skip to content

Commit

Permalink
revert changes made accidentally
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Dec 23, 2024
1 parent 9727d3b commit 6ed5566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/shared/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 6ed5566

Please sign in to comment.