diff --git a/damus/Views/MediaPicker.swift b/damus/Views/MediaPicker.swift index bd878a81..eb60a4cc 100644 --- a/damus/Views/MediaPicker.swift +++ b/damus/Views/MediaPicker.swift @@ -40,6 +40,10 @@ struct MediaPicker: UIViewControllerRepresentable { self.parent.presentationMode.dismiss() } + // When user dismiss the upload confirmation and re-adds again, reset orderIds and orderMap + orderIds.removeAll() + orderMap.removeAll() + for result in results { let orderId = result.assetIdentifier ?? UUID().uuidString