Skip to content

Commit 6dcf2c1

Browse files
committed
Update comments
1 parent 8217a04 commit 6dcf2c1

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Creation/EditableOrderViewModel.swift

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ private extension EditableOrderViewModel {
573573
guard let self = self else { return nil }
574574
switch state {
575575
case .error(let error):
576-
DDLogError("⛔️ Error syncing new order remotely: \(error)")
576+
DDLogError("⛔️ Error syncing order remotely: \(error)")
577577
self.trackSyncOrderFailure(error: error)
578578
return NoticeFactory.syncOrderErrorNotice(error, with: self.orderSynchronizer)
579579
default:
@@ -837,7 +837,7 @@ private extension EditableOrderViewModel {
837837
try productsResultsController.performFetch()
838838
allProducts = productsResultsController.fetchedObjects
839839
} catch {
840-
DDLogError("⛔️ Error fetching products for new order: \(error)")
840+
DDLogError("⛔️ Error fetching products for order: \(error)")
841841
}
842842
}
843843

@@ -848,16 +848,15 @@ private extension EditableOrderViewModel {
848848
try productVariationsResultsController.performFetch()
849849
allProductVariations = productVariationsResultsController.fetchedObjects
850850
} catch {
851-
DDLogError("⛔️ Error fetching product variations for new order: \(error)")
851+
DDLogError("⛔️ Error fetching product variations for order: \(error)")
852852
}
853853
}
854854
}
855855

856856
// MARK: Constants
857857

858858
extension EditableOrderViewModel {
859-
/// New Order notices
860-
///
859+
861860
enum NoticeFactory {
862861
/// Returns a default order creation error notice.
863862
///
@@ -899,12 +898,14 @@ private extension EditableOrderViewModel {
899898
static let titleWithOrderNumber = NSLocalizedString("Order #%1$@", comment: "Order number title. Parameters: %1$@ - order number")
900899
static let errorMessageOrderCreation = NSLocalizedString("Unable to create new order", comment: "Notice displayed when order creation fails")
901900
static let errorMessageOrderSync = NSLocalizedString("Unable to load taxes for order",
902-
comment: "Notice displayed when taxes cannot be synced for new order")
901+
comment: "Notice displayed when data cannot be synced for new or edited order")
903902
static let retryOrderSync = NSLocalizedString("Retry", comment: "Action button to retry syncing the draft order")
904903

905-
static let invalidBillingParameters = NSLocalizedString("Unable to set customer details.",
906-
comment: "Error notice title when we fail to update an address when creating an order.")
907-
static let invalidBillingSuggestion = NSLocalizedString("Please make sure you are running the latest version of WooCommerce and try again later.",
908-
comment: "Recovery suggestion when we fail to update an address when creating an order")
904+
static let invalidBillingParameters =
905+
NSLocalizedString("Unable to set customer details.",
906+
comment: "Error notice title when we fail to update an address when creating or editing an order.")
907+
static let invalidBillingSuggestion =
908+
NSLocalizedString("Please make sure you are running the latest version of WooCommerce and try again later.",
909+
comment: "Recovery suggestion when we fail to update an address when creating or editing an order")
909910
}
910911
}

0 commit comments

Comments
 (0)