Skip to content

Commit cd3b745

Browse files
committed
Add comment explaining the logic when retrying upload
1 parent 44b48ed commit cd3b745

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WooCommerce/Classes/ViewRelated/Products/Edit Product/ProductFormViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,7 @@ private extension ProductFormViewController {
10511051

10521052
let retry = UIAlertAction(title: Localization.ImageUploadError.retry, style: .default, handler: { [weak self] _ in
10531053
ServiceLocator.analytics.track(.productImageUploadRetryButtonTapped)
1054+
/// Discard the upload before uploading again to replace the failed upload.
10541055
self?.productImageActionHandler.discardUpload(asset: asset)
10551056
self?.productImageActionHandler.uploadMediaAssetToSiteMediaLibrary(asset: asset)
10561057
})

0 commit comments

Comments
 (0)