Bug 1469464 - Fix default shippingAddressErrors value for debugging. r=sfoster draft
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Mon, 09 Jul 2018 15:17:31 -0700
changeset 817203 b5686337e8e27164b45b8326cc0bb04560e8523e
parent 817202 fa9cf2891af0b01e26771117573efffa7f0c9688
child 817204 b27a8fb478be645dc434abb57b722340102771a3
child 817532 76ee5c4a8e23db6a24e755e09eff05cdf0ae9f52
push id115981
push usermozilla@noorenberghe.ca
push dateThu, 12 Jul 2018 06:45:37 +0000
reviewerssfoster
bugs1469464
milestone63.0a1
Bug 1469464 - Fix default shippingAddressErrors value for debugging. r=sfoster MozReview-Commit-ID: 9jRmPT6FT2Z
browser/components/payments/res/debugging.js
browser/components/payments/res/mixins/PaymentStateSubscriberMixin.js
--- a/browser/components/payments/res/debugging.js
+++ b/browser/components/payments/res/debugging.js
@@ -37,16 +37,17 @@ let REQUEST_1 = {
       {
         label: "Square",
         amount: {
           currency: "USD",
           value: "5",
         },
       },
     ],
+    shippingAddressErrors: {},
     shippingOptions: [
       {
         id: "123",
         label: "Fast",
         amount: {
           currency: "USD",
           value: 10,
         },
@@ -102,16 +103,17 @@ let REQUEST_2 = {
         label: "Tax",
         type: "tax",
         amount: {
           currency: "USD",
           value: "1.50",
         },
       },
     ],
+    shippingAddressErrors: {},
     shippingOptions: [
       {
         id: "123",
         label: "Fast (default)",
         amount: {
           currency: "USD",
           value: 10,
         },
--- a/browser/components/payments/res/mixins/PaymentStateSubscriberMixin.js
+++ b/browser/components/payments/res/mixins/PaymentStateSubscriberMixin.js
@@ -35,16 +35,17 @@ export let requestStore = new PaymentsSt
     tabId: null,
     topLevelPrincipal: {URI: {displayHost: null}},
     requestId: null,
     paymentMethods: [],
     paymentDetails: {
       id: null,
       totalItem: {label: null, amount: {currency: null, value: 0}},
       displayItems: [],
+      shippingAddressErrors: {},
       shippingOptions: [],
       modifiers: null,
       error: "",
     },
     paymentOptions: {
       requestPayerName: false,
       requestPayerEmail: false,
       requestPayerPhone: false,