Skip to content

Commit df86f21

Browse files
authored
Merge pull request PAYONE-GmbH#527 from pointia/check-empty-payment-method
Fix if paymentMethod is empty
2 parents 4f614d4 + ea7d0b3 commit df86f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

view/frontend/web/js/view/billing-address-mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ define([
5757
}
5858
},
5959
updateAddresses: function () {
60-
if (quote.paymentMethod().method.indexOf('payone') === -1) { // execute parent function for non payone methods
60+
if (quote.paymentMethod()?.method.indexOf('payone') === -1) { // execute parent function for non payone methods
6161
return this._super();
6262
}
6363

0 commit comments

Comments
 (0)