Skip to content

Commit

Permalink
run e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel7373 committed Dec 5, 2024
1 parent b7e0914 commit 8a770a6
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,9 @@ export class KeyresultDetailComponent implements OnInit, OnDestroy {

getKeyResultWithRightType(keyResult: KeyResult): KeyResultOrdinalMin | KeyResultMetricMin {
if (keyResult.keyResultType === 'metric') {
const keyResultMetric: KeyResultMetricMin = keyResult as KeyresultMin as KeyResultMetricMin;
if (keyResultMetric.lastCheckIn) {
return keyResultMetric;
}
return keyResult as KeyresultMin as KeyResultMetricMin;
} else {
const keyResultOrdinal: KeyResultOrdinalMin = keyResult as KeyresultMin as KeyResultOrdinalMin;
if (keyResultOrdinal.lastCheckIn) {
return keyResultOrdinal;
}
return keyResult as KeyresultMin as KeyResultOrdinalMin;
}
}

Expand Down

0 comments on commit 8a770a6

Please sign in to comment.