Skip to content

Commit 008f1db

Browse files
authored
Merge pull request #54 from magento-commerce/imported-basvanpoppel-security-package-302
[Imported] Fix check if place-order-recaptcha component is set
2 parents 543bd2d + ed5ad7d commit 008f1db

File tree

1 file changed

+2
-1
lines changed
  • ReCaptchaCheckout/Block/LayoutProcessor/Checkout

1 file changed

+2
-1
lines changed

ReCaptchaCheckout/Block/LayoutProcessor/Checkout/Onepage.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ public function process($jsLayout)
7979
['place-order-recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key);
8080
} else {
8181
if (isset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
82-
['payment']['children']['beforeMethods']['children']['place-order-recaptcha'])) {
82+
['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']['children']
83+
['place-order-recaptcha'])) {
8384
unset($jsLayout['components']['checkout']['children']['steps']['children']['billing-step']['children']
8485
['payment']['children']['beforeMethods']['children']['place-order-recaptcha-container']
8586
['children']['place-order-recaptcha']);

0 commit comments

Comments
 (0)