Skip to content

Commit

Permalink
fix: Fixed shipping address getting skipped unnecessary (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 authored Jul 19, 2023
1 parent a4597db commit d09ce7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/data/mutation/class-checkout-mutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function is_registration_required() {
* @return bool
*/
protected static function maybe_skip_fieldset( $fieldset_key, $data ) {
if ( 'shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] || ! \WC()->cart->needs_shipping_address() ) ) {
if ( 'shipping' === $fieldset_key && ( ! $data['ship_to_different_address'] && ! \WC()->cart->needs_shipping_address() ) ) {
return true;
}

Expand Down

0 comments on commit d09ce7d

Please sign in to comment.