mirror of
https://github.com/bitwarden/web
synced 2025-12-31 07:33:39 +00:00
Validate before submit
This commit is contained in:
@@ -98,6 +98,12 @@ export class AccountComponent {
|
||||
}
|
||||
|
||||
async submit() {
|
||||
this.formData.markAllAsTouched();
|
||||
|
||||
if (!this.formData.valid) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const request = new OrganizationUpdateRequest();
|
||||
request.name = this.formData.get("name").value;
|
||||
|
||||
Reference in New Issue
Block a user