Skip to content

Commit 6709773

Browse files
committed
Use isNotEmpty to check emptiness of selectedPackagesDetails
1 parent 73c6594 commit 6709773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Shipping Labels/Create Shipping Label Form/ShippingLabelFormViewModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ private extension ShippingLabelFormViewModel {
600600
/// When multi-package support is available, we should create separate form for each package ID.
601601
///
602602
private func createDefaultCustomsFormsIfNeeded() -> [ShippingLabelCustomsForm] {
603-
guard customsFormRequired, !selectedPackagesDetails.isEmpty else {
603+
guard customsFormRequired, selectedPackagesDetails.isNotEmpty else {
604604
return []
605605
}
606606

0 commit comments

Comments
 (0)