Skip to content

Commit

Permalink
[NOTASK] Fix kyc ident reversedName check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick1712 committed Dec 31, 2024
1 parent 80e837c commit 654a200
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subdomains/generic/kyc/services/kyc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,8 @@ export class KycService {
if (
(Util.isSameName(identStep.userData.firstname, data.lastname) ||
Util.isSameName(identStep.userData.firstname, data.birthname)) &&
Util.isSameName(identStep.userData.surname, data.firstname)
Util.isSameName(identStep.userData.surname, data.firstname) &&
errors.some((e) => [KycError.FIRST_NAME_NOT_MATCHING, KycError.LAST_NAME_NOT_MATCHING].includes(e))
)
errors.push(KycError.REVERSED_NAMES);

Expand Down

0 comments on commit 654a200

Please sign in to comment.