Skip to content

Commit 363ae30

Browse files
authored
Fix metric names on PlayerGainedCommand
1 parent 5c1475c commit 363ae30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/instances/player/PlayerGainedCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {
22
formatNumber,
33
Metric,
4+
MetricProps,
45
parsePeriodExpression,
56
PeriodProps,
67
PlayerDeltasMapResponse
@@ -180,7 +181,7 @@ function buildGainsList(
180181
let metricName = '';
181182

182183
try {
183-
metricName = Metric[metric as Metric].name;
184+
metricName = MetricProps[metric as Metric].name;
184185
} catch (e) {
185186
metricName = metric;
186187
}

0 commit comments

Comments
 (0)