Skip to content

Commit

Permalink
Fix if paymentMethod is empty
Browse files Browse the repository at this point in the history
This might happen when you use a 1 step checkout e.g. Swissup Firecheckout or so
  • Loading branch information
pointia authored Nov 17, 2023
1 parent c485c4a commit ea7d0b3
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 ea7d0b3

Please sign in to comment.