restart matches on certain score

This commit is contained in:
chsakell
2016-10-16 10:57:29 +03:00
parent 6db505ed91
commit 840373489c
3 changed files with 22 additions and 3 deletions

View File

@@ -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>();
}
}
}