Skip to content

Commit

Permalink
Merge pull request #518 from pagarme/fix-bugs-address-and-checkoutblocks
Browse files Browse the repository at this point in the history
refactor: improve handling of checkout blocks document field validation
  • Loading branch information
fabiano-mallmann authored Nov 19, 2024
2 parents 016ca1c + 21ebd40 commit 13d95cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controller/Checkout/CustomerFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class CustomerFields
*/
public function hasCheckoutBlocksDocumentField()
{
if (!Utils::isCheckoutBlocksActive()) {
return false;
}
$checkoutFields = Package::container()->get(CheckoutFields::class);
$possibleNames = array_merge(
self::DOCUMENT_TYPES,
Expand Down

0 comments on commit 13d95cc

Please sign in to comment.