@everymatrix/cashier-verifications 1.43.3 → 1.43.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-verifications",
3
- "version": "1.43.3",
3
+ "version": "1.43.4",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "4723f5370b2d6fc913a8cf6770f9f492038e54e8"
38
+ "gitHead": "8464c47cb49b4ffa1c9debfac3a7dfc3097cf57a"
39
39
  }
@@ -135,6 +135,7 @@
135
135
  })
136
136
  }
137
137
  fetch(url, requestParams).then(res => res.json()).then(data => {
138
+ data.Verifications = []
138
139
  verificationStatus = getCalculatedStatus(data.Verifications);
139
140
  verificationStatus.VerificationStatuses.forEach(status => {
140
141
  if (status.VerificationUrlType !== 'Widget') {
@@ -162,7 +163,10 @@
162
163
 
163
164
  const getCalculatedStatus = (verifications) => {
164
165
  if (!verifications || !verifications.length) {
165
- return { VerificationSummaryStatus: CustomerVerificationStatus.Unverified }
166
+ return {
167
+ VerificationSummaryStatus: CustomerVerificationStatus.Unverified,
168
+ VerificationStatuses: []
169
+ }
166
170
  }
167
171
  const verificationsInProgress = getVerificationInProgress(verifications);
168
172
  if (verificationsInProgress && verificationsInProgress.length) {