Skip to content

Commit

Permalink
OP-558 - update plugin to Sylius 2 - fix checkout address validator
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 15, 2025
1 parent 39980c4 commit 2c298ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ public function validate(mixed $order, Constraint $constraint): void
/** @var CustomerInterface $customer */
$customer = $order->getCustomer();

if (null === $customer) {
return;
}

if (FraudStatusInterface::FRAUD_STATUS_WHITELISTED === $customer->getFraudStatus()) {
return;
}
Expand Down

0 comments on commit 2c298ab

Please sign in to comment.