Skip to content

Commit

Permalink
Merge pull request #32 from magento-tsg-csl3/MC-42372
Browse files Browse the repository at this point in the history
MC-42372: [MSI] Capcha is absent and "login" button displayed incorect
  • Loading branch information
zakdma authored May 25, 2021
2 parents 7b4d36e + ef1315b commit 4362a54
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ReCaptchaStorePickup/Block/LayoutProcessor/Checkout/Onepage.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,19 @@ public function process($jsLayout)
$jsLayout['components']['checkout']['children']['steps']['children']['store-pickup']['children']
['store-selector']['children']['customer-email']['children']['additional-login-form-fields']['children']
['recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key);
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['customer-email']['children']
['recaptcha']['settings'] = $this->captchaUiConfigResolver->get($key);
} else {
if (isset($jsLayout['components']['checkout']['children']['steps']['children']['store-pickup']['children']
['store-selector']['children']['customer-email']['children']['additional-login-form-fields']['children']
['recaptcha']['settings'])) {
['recaptcha'])
) {
unset($jsLayout['components']['checkout']['children']['steps']['children']['store-pickup']['children']
['store-selector']['children']['customer-email']['children']['additional-login-form-fields']['children']
['recaptcha']['settings']);
['store-selector']['children']['customer-email']['children']['additional-login-form-fields']
['children']['recaptcha']);
unset($jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['customer-email']['children']['recaptcha']);
}
}

Expand Down

0 comments on commit 4362a54

Please # to comment.