Description
When validating the origin address, the message "We were unable to automatically verify the address — Name is required." could appear even when the "name" is already filled.

It looks like in
|
$address = $data['address']; |
|
$company = $address['company']; |
|
$phone = $address['phone']; |
|
|
|
unset( $address['company'], $address['phone'] ); |
|
|
|
$body = array( |
|
'destination' => $address, |
|
); |
|
$response = $this->api_client->send_address_normalization_request( $body ); |
we are stripping out the
name field from the validation - maybe that's related?
Steps to reproduce
- Go to the order's page
- Click "Create new label" to open the modal
- In the "Origin" address, enter
(space) on the "name" field
- Click "Verify address"
- Click "Edit address" again, to edit the address
- Fill in the details of the "Name" field with "Test Tester"
- Click "Verify address" again
- The message "We were unable to automatically verify the address — Name is required." appears, even tho the "name" field is populated
Description
When validating the origin address, the message "We were unable to automatically verify the address — Name is required." could appear even when the "name" is already filled.

It looks like in
woocommerce-services/classes/class-wc-rest-connect-address-normalization-controller.php
Lines 16 to 25 in a0b068d
namefield from the validation - maybe that's related?Steps to reproduce
(space) on the "name" field