Skip to content

Commit d8534d2

Browse files
committed
fix for the #24618 Magento_Braintree/js/view/payment/method-renderer/paypal.js accessing undefined variables
1 parent de0fc3b commit d8534d2

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
@@ -334,7 +334,7 @@ define([
334334
}
335335

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

0 commit comments

Comments
 (0)