Skip to content

Commit d7838a4

Browse files
Claudio BiselliClaudio Biselli
authored andcommitted
fix
1 parent bb99dea commit d7838a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/src/CPGraphQlTypes/Customer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct(array $options)
7373
$this->next_wpt_plan_id = $options['nextWptPlanId'] ?? null;
7474
$this->address = null;
7575

76-
if (!isset($options['creditCardBillingState']) && strlen(trim($options['creditCardBillingState'])) == 0) {
76+
if (!isset($options['creditCardBillingState']) || strlen(trim($options['creditCardBillingState'])) == 0) {
7777
$options['creditCardBillingState'] = $options['creditCardBillingCountry'];
7878
}
7979

0 commit comments

Comments
 (0)