Skip to content

Commit 2ed3530

Browse files
Merge pull request #1950 from Solid-Money/claude/fix-didit-widget-blank-m6I0q
Handle KYC "In Review" status in Didit session polling
2 parents fcb1baa + a4447f2 commit 2ed3530

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

components/kyc/useDiditSession.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,20 @@ export function useDiditSession() {
137137
} else if (status.status === 'Declined' || status.kycStatus === 'rejected') {
138138
clearInterval(interval);
139139
onVerificationError('Your identity verification was declined. Please try again.');
140+
} else if (
141+
status.status === 'In Review' ||
142+
status.kycStatus === KycStatus.UNDER_REVIEW
143+
) {
144+
clearInterval(interval);
145+
onVerificationPending();
140146
}
141147
} catch {
142148
// silently retry on network errors
143149
}
144150
}, POLL_INTERVAL_MS);
145151

146152
return () => clearInterval(interval);
147-
}, [session.phase, onVerificationComplete, onVerificationError]);
153+
}, [session.phase, onVerificationComplete, onVerificationError, onVerificationPending]);
148154

149155
// Auto-init on mount
150156
useEffect(() => {

0 commit comments

Comments
 (0)