Просмотр исходного кода

fix(core): Do not modify billing address when shipping address changed

Relates to #688
Michael Bromley 5 лет назад
Родитель
Сommit
7e9a709c64

+ 1 - 1
packages/core/src/service/helpers/order-modifier/order-modifier.ts

@@ -330,7 +330,7 @@ export class OrderModifier {
         if (input.updateBillingAddress) {
             order.billingAddress = {
                 ...order.billingAddress,
-                ...input.updateShippingAddress,
+                ...input.updateBillingAddress,
             };
             if (input.updateBillingAddress.countryCode) {
                 const country = await this.countryService.findOneByCode(