Skip to content

Commit d09ce7d

Browse files
authored
fix: Fixed shipping address getting skipped unnecessary (#752)
1 parent a4597db commit d09ce7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/data/mutation/class-checkout-mutation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static function is_registration_required() {
4444
* @return bool
4545
*/
4646
protected static function maybe_skip_fieldset( $fieldset_key, $data ) {
47-
if ( 'shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] || ! \WC()->cart->needs_shipping_address() ) ) {
47+
if ( 'shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] && ! \WC()->cart->needs_shipping_address() ) ) {
4848
return true;
4949
}
5050

0 commit comments

Comments
 (0)