Skip to content

Commit

Permalink
Fix guest customer sync data for Magento 2.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
NickolasMalovanets committed Jul 30, 2024
1 parent e11da26 commit 9350aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion view/frontend/web/js/model/customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define([
*/
getCustomer: function () {
let address = checkoutData.getBillingAddressFromData() || checkoutData.getShippingAddressFromData();
if (!address) {
if (!address || !address.firstname) {
address = quote.billingAddress();
if (!address) {
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ define(
*
* @param {{paymentSource: {card: {billingAddress}}}}tokenResponse
*/
updateQuoteBillingAddress (tokenResponse) {
updateQuoteBillingAddress(tokenResponse) {
const fastlaneBillingAddress = tokenResponse.paymentSource && tokenResponse.paymentSource.card && tokenResponse.paymentSource.card.billingAddress
? tokenResponse.paymentSource.card.billingAddress
: null;
Expand Down

0 comments on commit 9350aff

Please sign in to comment.