Skip to content

Commit 320023e

Browse files
authored
ENGCOM-5849: fix for the #24618 Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/paypal.js accessing undefined variables #24622
2 parents 5b5cb4c + 9e30746 commit 320023e

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer

1 file changed

+1
-1
lines changed

app/code/Magento/Braintree/view/frontend/web/js/view/payment/method-renderer/paypal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ define([
336336
}
337337

338338
return {
339-
line1: address.street[0],
339+
line1: _.isUndefined(address.street) || _.isUndefined(address.street[0]) ? '' : address.street[0],
340340
city: address.city,
341341
state: address.regionCode,
342342
postalCode: address.postcode,

0 commit comments

Comments
 (0)