We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c39e044 commit 2ab26f6Copy full SHA for 2ab26f6
WooCommerce/Classes/Extensions/Booking+Helpers.swift
@@ -4,14 +4,16 @@ import struct Yosemite.Booking
4
extension Booking {
5
6
var summaryText: String {
7
- let productName = orderInfo?.productInfo?.name ?? "-"
+ let productName = orderInfo?.productInfo?.name
8
let customerName: String = {
9
guard let name = orderInfo?.customerInfo?.billingAddress.fullName else {
10
return Localization.guest
11
}
12
return name.isEmpty ? Localization.guest : name
13
}()
14
- return [productName, customerName].joined(separator: " • ")
+ return [productName, customerName]
15
+ .compactMap { $0 }
16
+ .joined(separator: " • ")
17
18
19
private enum Localization {
0 commit comments