@vpdev2/metakyc-sdk 1.0.38 → 1.0.39
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/dist/hooks/useRiskScoring.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2343,7 +2343,12 @@ function Yt(e) {
|
|
|
2343
2343
|
if (s(C), (S = O == null ? void 0 : O.riskScoringResults) != null && S.length) {
|
|
2344
2344
|
const W = O.riskScoringResults[0], F = {};
|
|
2345
2345
|
for (const h of W.riskCriteriaResults ?? [])
|
|
2346
|
-
h.riskCriteriaId != null && h.answer != null && h.answer !== ""
|
|
2346
|
+
if (h.riskCriteriaId != null && h.answer != null && h.answer !== "") {
|
|
2347
|
+
const A = [...new Set(
|
|
2348
|
+
h.answer.split(",").map((I) => I.trim()).filter((I) => I !== "")
|
|
2349
|
+
)];
|
|
2350
|
+
A.length > 0 && (F[h.riskCriteriaId] = A);
|
|
2351
|
+
}
|
|
2347
2352
|
l(F);
|
|
2348
2353
|
}
|
|
2349
2354
|
f.current = e;
|