Skip to content

Commit

Permalink
fix: missing avg in leader games for !gm
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Jun 29, 2024
1 parent af2d96f commit f1616fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dota/src/dota/lib/calculateAvg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ export async function calculateAvg({ locale, currentMatchId, players }: Avg): Pr

if (!rank && !avgLeader) return 'Immortal'
if (!rank) return `${avg || `#${avgLeader}`}`
if (avgLeader) return `#${avgLeader}`

if ('standing' in rank || avgLeader) {
if ('standing' in rank) {
return 'Immortal'
}

Expand Down

0 comments on commit f1616fe

Please sign in to comment.