@@ -781,15 +781,9 @@ private extension OrderDetailsDataSource {
781781 private func configureShippingAddress( cell: CustomerInfoTableViewCell ) {
782782 let shippingAddress = order. shippingAddress
783783
784- cell. title = NSLocalizedString ( " Shipping details " ,
785- comment: " Shipping title for customer info cell " )
784+ cell. title = Title . shippingAddress
786785 cell. name = shippingAddress? . fullNameWithCompany
787- cell. address = shippingAddress? . formattedPostalAddress ??
788- NSLocalizedString (
789- " No address specified. " ,
790- comment: " Order details > customer info > shipping details. " +
791- " This is where the address would normally display. "
792- )
786+ cell. address = shippingAddress? . formattedPostalAddress ?? Title . shippingAddressEmptyAction
793787
794788 cell. onEditTapped = orderEditingEnabled ? { [ weak self] in
795789 self ? . onCellAction ? ( . editShippingAddress, nil )
@@ -1221,6 +1215,8 @@ extension OrderDetailsDataSource {
12211215 static let refundedProducts = NSLocalizedString ( " Refunded Products " , comment: " Section title " )
12221216 static let tracking = NSLocalizedString ( " Tracking " , comment: " Order tracking section title " )
12231217 static let customerNote = NSLocalizedString ( " Customer Provided Note " , comment: " Customer note section title " )
1218+ static let shippingAddress = NSLocalizedString ( " Shipping Details " ,
1219+ comment: " Shipping title for customer info cell " )
12241220 static let information = NSLocalizedString ( " Customer " , comment: " Customer info section title " )
12251221 static let payment = NSLocalizedString ( " Payment " , comment: " Payment section title " )
12261222 static let notes = NSLocalizedString ( " Order Notes " , comment: " Order notes section title " )
@@ -1242,6 +1238,10 @@ extension OrderDetailsDataSource {
12421238 NSLocalizedString ( " Don’t know how to print from your mobile device? " ,
12431239 comment: " Title of button in order details > shipping label that shows the instructions on how to print " +
12441240 " a shipping label on the mobile device. " )
1241+ static let shippingAddressEmptyAction =
1242+ NSLocalizedString ( " No address specified. " ,
1243+ comment: " Order details > customer info > shipping details. " +
1244+ " This is where the address would normally display. " )
12451245 }
12461246
12471247 enum Footer {
0 commit comments