Skip to content

Commit

Permalink
[NOTASK] fix organization country kyc check
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick1712 committed Dec 20, 2024
1 parent f07bb0c commit fc63980
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 @@ -882,7 +882,8 @@ export class KycService {

if (!data.success) errors.push(KycError.INVALID_RESULT);

const userCountry = entity.userData.verifiedCountry ?? entity.userData.country;
const userCountry =
entity.userData.organizationCountry ?? entity.userData.verifiedCountry ?? entity.userData.country;
if (entity.userData.accountType === AccountType.PERSONAL) {
if (userCountry && !userCountry.dfxEnable) errors.push(KycError.COUNTRY_NOT_ALLOWED);

Expand Down

0 comments on commit fc63980

Please sign in to comment.