From 291972dbe1cd04700048da860a56f0f74fe804d3 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 9 Jun 2020 11:10:29 -0400 Subject: [PATCH] checkign for empty --- .../ListOneColumnFullWidthTextAllTextAndLinks.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/OneColumn/ListOneColumnFullWidthTextAllTextAndLinks.swift b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/OneColumn/ListOneColumnFullWidthTextAllTextAndLinks.swift index e67353c7..a5d2a374 100644 --- a/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/OneColumn/ListOneColumnFullWidthTextAllTextAndLinks.swift +++ b/MVMCoreUI/Atomic/Molecules/DesignedComponents/List/OneColumn/ListOneColumnFullWidthTextAllTextAndLinks.swift @@ -76,19 +76,19 @@ import Foundation var message = "" - if let eyebrowLabel = eyebrow.text { + if let eyebrowLabel = eyebrow.text, !eyebrowLabel.isEmpty { message += eyebrowLabel + ", " } - if let headlineLabel = headline.text { + if let headlineLabel = headline.text, !headlineLabel.isEmpty { message += headlineLabel + ", " } - if let subHeadlineLabel = subHeadline.text { + if let subHeadlineLabel = subHeadline.text, !subHeadlineLabel.isEmpty { message += subHeadlineLabel + ", " } - if let bodyLabel = body.text { + if let bodyLabel = body.text, !bodyLabel.isEmpty { message += bodyLabel }