Skip to content
Snippets Groups Projects
Commit 1fdc3d76 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix show ! empty address

parent ccf0341c
No related branches found
No related tags found
No related merge requests found
......@@ -696,7 +696,10 @@ export class ContactsFormComponent implements OnInit {
tap(() => this.companyFound = null),
filter((data: any) => data.length > 0),
tap((data) => {
this.companyFound = data[0];
if (!this.functions.empty(data[0].addressNumber) || !this.functions.empty(data[0].addressStreet) || !this.functions.empty(data[0].addressPostcode) || !this.functions.empty(data[0].addressTown) || !this.functions.empty(data[0].addressCountry)) {
this.companyFound = data[0];
}
}),
//finalize(() => this.loading = false),
catchError((err: any) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment