Skip to content

Commit 19d417b

Browse files
authored
fix: verification issues are not shown when status is declined (#3410)
1 parent fb5ae73 commit 19d417b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

services/workflows-service/src/common/utils/idv/format-individual-verification.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ describe('formatIndividualVerification #unit', () => {
245245
},
246246
},
247247
decision: {
248-
riskLabels: ['newUser', 'newDocument'],
248+
riskLabels: [],
249249
status: decision,
250250
decisionReason: reason,
251251
decisionScore,

services/workflows-service/src/common/utils/idv/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ export const formatIndividualVerificationDecision = ({
107107
}
108108

109109
const riskLabels = insightValues
110-
.filter(([label, result]) => IGNORED_DECISION_CHECKS.includes(label) && result !== 'yes')
110+
.filter(
111+
([label, result]) =>
112+
!IGNORED_DECISION_CHECKS.includes(label) && result !== 'yes' && result !== 'notApplicable',
113+
)
111114
.map(([label]) => label);
112115

113116
return {

0 commit comments

Comments
 (0)