1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

full address part 2

This commit is contained in:
Kyle Spearrin
2019-04-29 10:13:32 -04:00
parent 169be0f8da
commit 4d57221daa

View File

@@ -102,4 +102,14 @@ export class IdentityView implements View {
}
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;
}
}