full address part 2

This commit is contained in:
Kyle Spearrin 2019-04-29 10:13:32 -04:00
parent 169be0f8da
commit 4d57221daa
1 changed files with 10 additions and 0 deletions

View File

@ -102,4 +102,14 @@ export class IdentityView implements View {
} }
return address; return address;
} }
get fullAddressPart2(): string {
if (this.city == null && this.state == null && this.postalCode == null) {
return null;
}
const city = this.city || '-';
const state = this.state || '-';
const postalCode = this.postalCode || '-';
return city + ', ' + state + ', ' + postalCode;
}
} }