diff --git a/Twigs/Transaction/TransactionDetailsView.swift b/Twigs/Transaction/TransactionDetailsView.swift index 1c7704d..abdf103 100644 --- a/Twigs/Transaction/TransactionDetailsView.swift +++ b/Twigs/Transaction/TransactionDetailsView.swift @@ -58,17 +58,20 @@ struct LabeledField: View { let value: String? let showDivider: Bool + @ViewBuilder var body: some View { - VStack { - HStack { - Text(self.label) - .foregroundColor(.secondary) - Spacer() - Text(verbatim: value ?? "") - .multilineTextAlignment(.trailing) - } - if showDivider { - Divider() + if let val = value, !val.isEmpty { + VStack { + HStack { + Text(self.label) + .foregroundColor(.secondary) + Spacer() + Text(verbatim: value ?? "") + .multilineTextAlignment(.trailing) + } + if showDivider { + Divider() + } } } }