Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nevio18324 committed Dec 23, 2024
1 parent 85a08b0 commit b3cf0ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class KeyresultDialogComponent {
id: this.data.keyResult?.id
} as KeyResultOrdinalDTO;
keyResult.id = this.data.keyResult?.id;
keyResult.version = this.data.keyResult?.version!;
keyResult.version = this.data.keyResult.version!;
keyResult.actionList = keyResult.actionList!.filter((action: Action) => action.action !== '');
this.keyResultService.saveKeyResult(keyResult)
.subscribe((returnValue) => {
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('ScoringComponent', () => {
component.failPercent = 0;

// Set zone
(component.keyResult.lastCheckIn as CheckInOrdinalMin)!.zone! = object.zoneValue;
(component.keyResult.lastCheckIn as CheckInOrdinalMin)!.zone = object.zoneValue;
component.calculatePercentageOrdinal();

// Verify if percentage was set correctly
Expand Down

0 comments on commit b3cf0ff

Please sign in to comment.