Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio Biselli authored and Claudio Biselli committed Dec 20, 2024
1 parent bb99dea commit d7838a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/src/CPGraphQlTypes/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct(array $options)
$this->next_wpt_plan_id = $options['nextWptPlanId'] ?? null;
$this->address = null;

if (!isset($options['creditCardBillingState']) && strlen(trim($options['creditCardBillingState'])) == 0) {
if (!isset($options['creditCardBillingState']) || strlen(trim($options['creditCardBillingState'])) == 0) {
$options['creditCardBillingState'] = $options['creditCardBillingCountry'];
}

Expand Down

0 comments on commit d7838a4

Please sign in to comment.