diff --git a/frontend/src/app/collaboration/forfeit-dialog/forfeit-dialog.component.ts b/frontend/src/app/collaboration/forfeit-dialog/forfeit-dialog.component.ts index ab7d8bf645..af5faf1382 100644 --- a/frontend/src/app/collaboration/forfeit-dialog/forfeit-dialog.component.ts +++ b/frontend/src/app/collaboration/forfeit-dialog/forfeit-dialog.component.ts @@ -64,7 +64,9 @@ export class ForfeitDialogComponent implements OnInit { if (userId) { this.collabService.forfeit(this.roomId).subscribe({ next: () => { - this.yforfeit.set(userId, true); + if (this.yforfeit.size == 0) { + this.yforfeit.set(userId, true); + } this.message = 'You have forfeited. \n\n Redirecting you to homepage...'; this.isForfeit = true; this.hideButtons = true; diff --git a/frontend/src/app/collaboration/submit-dialog/submit-dialog.component.html b/frontend/src/app/collaboration/submit-dialog/submit-dialog.component.html index e42cbb1216..cd2d9ce893 100644 --- a/frontend/src/app/collaboration/submit-dialog/submit-dialog.component.html +++ b/frontend/src/app/collaboration/submit-dialog/submit-dialog.component.html @@ -16,11 +16,18 @@