mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-23 01:37:59 +00:00
restart matches on certain score
This commit is contained in:
@@ -51,6 +51,9 @@ export class HomeComponent implements OnInit {
|
||||
if (self.matches[i].Id === match.Id) {
|
||||
self.matches[i].HostScore = match.HostScore;
|
||||
self.matches[i].GuestScore = match.GuestScore;
|
||||
|
||||
if(match.HostScore === 0 && match.GuestScore === 0)
|
||||
self.matches[i].Feeds = new Array<Feed>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user