[WIP] Возможность создать клиента с фамилией

This commit is contained in:
megavrilinvv
2022-12-06 18:12:06 +03:00
parent 9cba7503fd
commit fe317a0619

View File

@@ -533,7 +533,9 @@ export default {
"", "",
}, },
contacts: [...this.client.contacts], contacts: [...this.client.contacts],
avatar: `${this.client.last_name[0]}${this.client.first_name[0]}`, avatar: this.client.first_name
? this.client.last_name[0] + this.client.first_name[0]
: this.client.last_name.substr(0, 2),
color: this.client.color, color: this.client.color,
photo: this.client.photo, photo: this.client.photo,
}; };