1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 21:33:27 +00:00

[PM-13947] - guard against call to undefined onSubmit (#11795)

* guard against call to undefined function

* revert input optional
This commit is contained in:
Jordan Aasen
2024-10-31 09:34:26 -07:00
committed by GitHub
parent 97cd0d492c
commit e00f22879c
3 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ export class ManageTaxInformationComponent implements OnInit, OnDestroy {
if (this.formGroup.invalid) {
return;
}
await this.onSubmit(this.taxInformation);
await this.onSubmit?.(this.taxInformation);
this.taxInformationUpdated.emit();
};