diff --git a/src/app/item-detail/request-stats/request-stats-compare.component.ts b/src/app/item-detail/request-stats/request-stats-compare.component.ts index 5cc51c89..e5190994 100644 --- a/src/app/item-detail/request-stats/request-stats-compare.component.ts +++ b/src/app/item-detail/request-stats/request-stats-compare.component.ts @@ -318,6 +318,9 @@ export class RequestStatsCompareComponent implements OnInit, OnDestroy { } calculateApdex(satisfaction, toleration, samples) { + if (satisfaction === null || toleration === null) { + return + } const apdexValue = roundNumberTwoDecimals((satisfaction + (toleration * 0.5)) / samples) return this.apdexScore(apdexValue) }