@@ -458,22 +458,12 @@ private extension OrderDetailsDataSource {
458458 cell. selectionStyle = . none
459459 if customerNote. isNotEmpty {
460460 cell. body = customerNote. quoted
461- cell. onEditTapped = { [ weak self] in
462- self ? . onCellAction ? ( . editCustomerNote, nil )
463- }
464461 } else {
465462 cell. body = nil
466- cell. onAddTapped = { [ weak self] in
467- self ? . onCellAction ? ( . editCustomerNote, nil )
468- }
469- }
470-
471- // TODO: Before releasing the feature, please the delete closures assignation above.
472- if ServiceLocator . featureFlagService. isFeatureFlagEnabled ( FeatureFlag . unifiedOrderEditing) {
473- cell. onEditTapped = nil
474- cell. onAddTapped = nil
475463 }
476464
465+ cell. onEditTapped = nil
466+ cell. onAddTapped = nil
477467 cell. addButtonTitle = NSLocalizedString ( " Add Customer Note " , comment: " Title for the button to add the Customer Provided Note in Order Details " )
478468 cell. editButtonAccessibilityLabel = NSLocalizedString (
479469 " Update Note " ,
@@ -900,22 +890,12 @@ private extension OrderDetailsDataSource {
900890
901891 if let formattedPostalAddress = shippingAddress? . formattedPostalAddress {
902892 cell. address = formattedPostalAddress
903- cell. onEditTapped = { [ weak self] in
904- self ? . onCellAction ? ( . editShippingAddress, nil )
905- }
906893 } else {
907894 cell. address = nil
908- cell. onAddTapped = { [ weak self] in
909- self ? . onCellAction ? ( . editShippingAddress, nil )
910- }
911- }
912-
913- // TODO: Before releasing the feature, please the delete closures assignation above.
914- if ServiceLocator . featureFlagService. isFeatureFlagEnabled ( FeatureFlag . unifiedOrderEditing) {
915- cell. onEditTapped = nil
916- cell. onAddTapped = nil
917895 }
918896
897+ cell. onEditTapped = nil
898+ cell. onAddTapped = nil
919899 cell. addButtonTitle = NSLocalizedString ( " Add Shipping Address " , comment: " Title for the button to add the Shipping Address in Order Details " )
920900 cell. editButtonAccessibilityLabel = NSLocalizedString (
921901 " Update Address " ,
@@ -1114,34 +1094,14 @@ extension OrderDetailsDataSource {
11141094 let customerInformation : Section ? = {
11151095 var rows : [ Row ] = [ ]
11161096
1117- let isUnifiedEditingEnabled = ServiceLocator . featureFlagService. isFeatureFlagEnabled ( FeatureFlag . unifiedOrderEditing)
1118-
11191097 /// Customer Note
1120- if isUnifiedEditingEnabled {
1121- if order. customerNote? . isNotEmpty == true {
1122- /// When inside `.unifiedOrderEditing` only show the note if there is content for it.
1123- rows. append ( . customerNote)
1124- }
1125- } else {
1126- /// Always visible to allow editing.
1098+ if order. customerNote? . isNotEmpty == true {
11271099 rows. append ( . customerNote)
11281100 }
11291101
1130- let orderContainsOnlyVirtualProducts = self . products. filter { ( product) -> Bool in
1131- return items. first ( where: { $0. productID == product. productID} ) != nil
1132- } . allSatisfy { $0. virtual == true }
1133-
11341102 /// Shipping Address
1135- if isUnifiedEditingEnabled {
1136- /// When inside `.unifiedOrderEditing` only show the billing address if there is content for it.
1137- if order. shippingAddress? . isEmpty == false {
1138- rows. append ( . shippingAddress)
1139- }
1140- } else {
1141- /// Almost always visible to allow editing.
1142- if order. shippingAddress != nil && orderContainsOnlyVirtualProducts == false {
1143- rows. append ( . shippingAddress)
1144- }
1103+ if order. shippingAddress? . isEmpty == false {
1104+ rows. append ( . shippingAddress)
11451105 }
11461106
11471107 /// Shipping Lines
@@ -1150,13 +1110,7 @@ extension OrderDetailsDataSource {
11501110 }
11511111
11521112 /// Billing Address
1153- if isUnifiedEditingEnabled {
1154- /// When inside `.unifiedOrderEditing` only show the billing address if there is content for it.
1155- if order. billingAddress? . isEmpty == false {
1156- rows. append ( . billingDetail)
1157- }
1158- } else {
1159- /// Always visible to allow editing.
1113+ if order. billingAddress? . isEmpty == false {
11601114 rows. append ( . billingDetail)
11611115 }
11621116
@@ -1645,8 +1599,6 @@ extension OrderDetailsDataSource {
16451599 case createShippingLabel
16461600 case shippingLabelTrackingMenu( shippingLabel: ShippingLabel , sourceView: UIView )
16471601 case viewAddOns( addOns: [ OrderItemAttribute ] )
1648- case editCustomerNote
1649- case editShippingAddress
16501602 }
16511603
16521604 enum Constants {
0 commit comments