Skip to content

Commit 88eb932

Browse files
committed
Don't present customer section for empty billing address
1 parent dc606cb commit 88eb932

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,10 @@ private extension BookingDetailsViewModel {
7777
}
7878

7979
func updateCustomerInfo(from order: Order) {
80-
guard let billingAddress = order.billingAddress else {
80+
guard
81+
let billingAddress = order.billingAddress,
82+
!billingAddress.isEmpty
83+
else {
8184
return
8285
}
8386

0 commit comments

Comments
 (0)