From b09b683727650b1e6d3f2e2d28b834d90f318dbf Mon Sep 17 00:00:00 2001 From: Patrick Mueller Date: Fri, 16 Sep 2022 11:50:39 +0200 Subject: [PATCH] Smol refactor --- src/app/components/add-game/add-game.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/components/add-game/add-game.component.ts b/src/app/components/add-game/add-game.component.ts index 00895c3..b3d0d1b 100644 --- a/src/app/components/add-game/add-game.component.ts +++ b/src/app/components/add-game/add-game.component.ts @@ -436,24 +436,24 @@ export class AddGameComponent implements OnInit { // Announcements if (winningTeam === Team.RE) { if (this.checkAnnouncementActive(announcements.Announcement.RE_NO_NINETY) && winningTeamScore > 150) { - gameScore += 1; + gameScore++; } if (this.checkAnnouncementActive(announcements.Announcement.RE_NO_SIXTY) && winningTeamScore > 180) { - gameScore += 1; + gameScore++; } if (this.checkAnnouncementActive(announcements.Announcement.RE_NO_THIRTY) && winningTeamScore > 210) { - gameScore += 1; + gameScore++; } } if (winningTeam === Team.CONTRA) { if (this.checkAnnouncementActive(announcements.Announcement.CONTRA_NO_NINETY) && winningTeamScore > 150) { - gameScore += 1; + gameScore++; } if (this.checkAnnouncementActive(announcements.Announcement.CONTRA_NO_SIXTY) && winningTeamScore > 180) { - gameScore += 1; + gameScore++; } if (this.checkAnnouncementActive(announcements.Announcement.CONTRA_NO_THIRTY) && winningTeamScore > 210) { - gameScore += 1; + gameScore++; } }