WIP Поправила меню и формы

This commit is contained in:
Daria Golova
2023-01-24 16:45:13 +03:00
parent 59a1f884ab
commit 4aac8a3f35
7 changed files with 39 additions and 70 deletions

View File

@@ -325,7 +325,11 @@ export default {
el.username !== this.dataClient.phone.username
)
updateContacts.push(this.dataClient.phone);
else if (this.dataClient.phone.username.length < 18) {
else if (
el.kind === "PHONE" &&
this.dataClient.phone.username &&
this.dataClient.phone.username.length < 18
) {
this.dataClient.phone.username =
this.client.contacts.find((el) => el.kind === "PHONE")?.username ||
"";
@@ -334,7 +338,6 @@ export default {
"Введите мобильный номер состоящий из 11 цифр"
);
}
if (
el.kind === "EMAIL" &&
el.username !== this.dataClient.email.username