Skip to content

Commit

Permalink
Fix latin on scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandro Stikić committed Dec 24, 2020
1 parent 6966afe commit d7f7625
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/graphics/scoreboard/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
</span>

<span class="gamertag-text">
({{ player_gamertag_latin(1) }})
{{ player_gamertag_latin(1) }}
</span>
</fitty>
</div>
Expand Down Expand Up @@ -290,12 +290,15 @@ export default class App extends Vue {
player_gamertag_latin(player_num: number): string {
const player = this.display.players[player_num]
let latin = ""
if (player.gamertag_latin.length > 0) {
return player.gamertag_latin
latin = player.gamertag_latin
} else {
return player.gamertag_latin_generated
latin = player.gamertag_latin_generated
}
return latin.length > 0 ? `(${latin})` : ""
}
mounted(): void {
Expand Down

0 comments on commit d7f7625

Please sign in to comment.