Skip to content

Commit 7f122e2

Browse files
committed
Remove customer section absence as sync condition
1 parent 00b2184 commit 7f122e2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

WooCommerce/Classes/ViewModels/Booking Details/BookingDetailsViewModel.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,7 @@ private extension BookingDetailsViewModel {
140140

141141
/// Returns true when the `customerID` is non-zero and customer section doesn't exist
142142
var shouldSyncCustomer: Bool {
143-
return booking.customerID > 0 && !sections.contains(where: {
144-
if case .customer = $0.content {
145-
return true
146-
}
147-
return false
148-
})
143+
return booking.customerID > 0
149144
}
150145
}
151146

0 commit comments

Comments
 (0)