Skip to content

Commit

Permalink
go back to full hero names
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Oct 6, 2023
1 parent daffcd7 commit b747fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dota/src/dota/lib/heroes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ export function getHeroNameOrColor(id: number, index?: number) {
if (!id && typeof index === 'number') return heroColors[index]

const hero = getHeroById(id)
const name = hero?.alias?.[0] ?? hero?.localized_name
const name = hero?.localized_name
if (!name && typeof index === 'number') {
return heroColors[index]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dota/src/twitch/lib/getPlayerFromArgs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export async function getPlayerFromArgs({
const heroIdsInMatch = players.map((player) => player.heroid)
const heroList = heroIdsInMatch
.map((heroId) => getHeroById(heroId))
.map((hero) => hero?.alias?.[0] ?? hero?.localized_name)
.map((hero) => hero?.localized_name)
.join(' · ')

if (!args.length) {
Expand Down

0 comments on commit b747fc6

Please sign in to comment.