Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions hooks/useCardSteps/kycDisplayHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ const DIDIT_WARNING_DESCRIPTIONS: Record<string, string> = {
SCREEN_CAPTURE_DETECTED: 'A photo of a screen was detected — please use the original document',
PRINTED_COPY_DETECTED: 'A printed copy was detected — please use the original document',
PORTRAIT_MANIPULATION_DETECTED: 'The portrait on the document appears to have been altered',
POSSIBLE_DUPLICATED_USER: 'A duplicate account was detected',
POSSIBLE_DUPLICATED_USER: 'This identity is already linked to another verified account',
DUPLICATED_IP: 'This network has already been used to verify another account',
DUPLICATED_DEVICE: 'This device has already been used to verify another account',
DOCUMENT_NUMBER_NOT_DETECTED: 'Document number could not be read',
NAME_NOT_DETECTED: 'Name could not be read from the document',
DATE_OF_BIRTH_NOT_DETECTED: 'Date of birth could not be read from the document',
Expand Down Expand Up @@ -239,8 +241,15 @@ export function getStepDescription(
return 'Additional verification steps are required. Please continue to complete the process.';
}

// Didit under review — user should wait
// Didit under review — user should wait. Duplicate IP/device filters land
// here (Didit dashboard sets them to "review" so the suspicious applicant
// doesn't reach Rain). When warnings are attached, surface them so the user
// knows what's being checked instead of seeing a generic "few minutes" copy
// for what is actually a manual review.
if (options?.kycStatus === KycStatus.UNDER_REVIEW && !isRecognizedRainStatus) {
if (warnings.length > 0) {
return `Your application is under additional review:\n- ${formatKycWarnings(warnings)}\n\nWe'll update you when the review is complete.`;
}
return 'Your information is being reviewed. This usually takes a few minutes.';
}

Expand Down
Loading