Skip to content

Commit c516a63

Browse files
fix bug
1 parent 1dca54f commit c516a63

File tree

1 file changed

+1
-3
lines changed
  • sdk/feature-management-applicationinsights-browser/src

1 file changed

+1
-3
lines changed

sdk/feature-management-applicationinsights-browser/src/telemetry.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export function createTelemetryPublisher(client: ApplicationInsights): (event: E
3434
let percentileAllocationPercentage = 0;
3535
if (event.variant !== undefined && event.feature.allocation !== undefined && event.feature.allocation.percentile !== undefined) {
3636
for (const percentile of event.feature.allocation.percentile) {
37-
if (percentile.variant === event.variant.name) {
38-
percentileAllocationPercentage += percentile.to - percentile.from;
39-
}
37+
percentileAllocationPercentage += percentile.to - percentile.from;
4038
}
4139
}
4240
eventProperties["PercentileAllocationPercentage"] = (100 - percentileAllocationPercentage).toString();

0 commit comments

Comments
 (0)