From 169be0f8da168e368e2ad81c1822f9f08e39df45 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 29 Apr 2019 09:30:00 -0400 Subject: [PATCH] should be inverse --- src/models/view/identityView.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/models/view/identityView.ts b/src/models/view/identityView.ts index b6adae4d69..ff5449d12d 100644 --- a/src/models/view/identityView.ts +++ b/src/models/view/identityView.ts @@ -88,14 +88,14 @@ export class IdentityView implements View { get fullAddress(): string { let address = this.address1; - if (Utils.isNullOrWhitespace(this.address2)) { - if (Utils.isNullOrWhitespace(address)) { + if (!Utils.isNullOrWhitespace(this.address2)) { + if (!Utils.isNullOrWhitespace(address)) { address += ', '; } address += this.address2; } - if (Utils.isNullOrWhitespace(this.address3)) { - if (Utils.isNullOrWhitespace(address)) { + if (!Utils.isNullOrWhitespace(this.address3)) { + if (!Utils.isNullOrWhitespace(address)) { address += ', '; } address += this.address3;