Skip to content

Commit

Permalink
Merge pull request PAYONE-GmbH#527 from pointia/check-empty-payment-m…
Browse files Browse the repository at this point in the history
…ethod

Fix if paymentMethod is empty
  • Loading branch information
janteuber authored Mar 21, 2024
2 parents 4f614d4 + ea7d0b3 commit df86f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/web/js/view/billing-address-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ define([
}
},
updateAddresses: function () {
if (quote.paymentMethod().method.indexOf('payone') === -1) { // execute parent function for non payone methods
if (quote.paymentMethod()?.method.indexOf('payone') === -1) { // execute parent function for non payone methods
return this._super();
}

Expand Down

0 comments on commit df86f21

Please sign in to comment.