Fix players not turning white on death

This commit is contained in:
Liam Westby 2018-05-07 11:42:37 -05:00
parent 846fbe7334
commit f5d84344da

View File

@ -14,16 +14,16 @@ export class PlayerComponent implements OnInit {
ngOnInit() {
}
public get style(): any {
get style(): any {
const style = {
'border-left': `5px solid ${this.player.color}`,
'background-color': `${this.backgroundColor(this.player.color)}`
'border-left': `5px solid ${this.color}`,
'background-color': `${this.backgroundColor(this.color)}`
};
return style;
}
public get color(): string {
get color(): string {
if (this.player.status === 'Dead' || this.player.status === 'Disconnected') {
return '#BBBBBB';
}