diff --git a/frontend/src/ts/account_applications/component/button/UserManagementService.ts b/frontend/src/ts/account_applications/component/button/UserManagementService.ts index 2100d095..4320326c 100644 --- a/frontend/src/ts/account_applications/component/button/UserManagementService.ts +++ b/frontend/src/ts/account_applications/component/button/UserManagementService.ts @@ -49,7 +49,7 @@ export class UserManagementService extends Behavior { private rpc: UserApplicationListRpcService; private authService: AuthorizationService; private statusUpdateService: StatusUpdateService; - private formJson; + private formJson: any; initialize() { super.initialize(); @@ -62,7 +62,9 @@ export class UserManagementService extends Behavior { @Visible() public processDeclaration(): void { - if (!this.authService.hasPermission(ErvuPermission.APPROVER) || !this.sendToErvu) { + if (!this.authService.hasPermission(ErvuPermission.APPROVER) + || !this.sendToErvu + || !this.formJson) { return; } const kind = this.applicationKind.getValue();