Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
fix(live-feed): fix team emoji display here too
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Oct 19, 2020
1 parent 6fa13c1 commit f25ac8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/team/team.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="bl-team" [style]="getTeamStyle()">
<span *ngIf="team !== 'home'" class="bl-team-emoji away" [style]="getEmojiStyle()" [innerHTML]="getEmoji()"></span>
<span *ngIf="team !== 'home'" class="bl-team-emoji away" [style]="getEmojiStyle()" [innerHTML]="team.emoji"></span>
<span class="bl-team-name" [style]="getNameStyle()">{{name}}</span>
<span *ngIf="team === 'home'" class="bl-team-emoji home" [style]="getEmojiStyle()" [innerHTML]="getEmoji()"></span>
<span *ngIf="team === 'home'" class="bl-team-emoji home" [style]="getEmojiStyle()" [innerHTML]="team.emoji"></span>
</div>
4 changes: 0 additions & 4 deletions src/app/team/team.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ export class TeamComponent implements OnInit {
// console.debug('TeamComponent initialized.');
}

getEmoji() {
return this.emoji ? String.fromCodePoint(this.emoji) : undefined;
}

getEmojiStyle() {
return '';
/*
Expand Down

0 comments on commit f25ac8b

Please sign in to comment.