Add loading state guard to prevent duplicate form submissions in Appeal and DiscordAppeal components.

This commit is contained in:
akastijn 2025-11-24 19:00:38 +01:00
parent 525116e89b
commit a6fbd19b6d
2 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ export class AppealComponent implements OnInit, OnDestroy {
if (this.formSubmitting) {
return;
}
this.formSubmitting = true;
const rawValue = this.form.getRawValue();
const uuid = this.authService.getUuid();
if (uuid === null) {

View File

@ -186,6 +186,7 @@ export class DiscordAppealComponent implements OnInit {
if (this.formSubmitting) {
return;
}
this.formSubmitting = true;
const rawValue = this.form.getRawValue();
const uuid = this.authService.getUuid();
if (uuid === null) {