Rename token from photon to alnt #7

Merged
nabarun merged 3 commits from deep-stack/testnet-onboarding-app:sk-rename-token into main 2024-07-30 12:17:47 +00:00
Showing only changes of commit ae49e6ff11 - Show all commits

View File

@ -55,7 +55,7 @@ const UserVerification = () => {
}, [applicationSubmitted, kycId, navigate, cosmosAddress, message, receivedEthSig]);
const messageHandler: MessageHandler = (event, payload) => {
console.log('sumsubEvent:', event);
console.log('sumsubEvent:', event, payload);
if (event === 'idCheck.onApplicantLoaded') {
setKycId((payload as EventPayload<'idCheck.onApplicantLoaded'>).applicantId);
@ -66,9 +66,12 @@ const UserVerification = () => {
}
if (event === 'idCheck.onApplicantStatusChanged') {
if ((payload as EventPayload<'idCheck.onApplicantStatusChanged'>).reviewStatus === 'pending') {
const applicantStatus = (payload as EventPayload<'idCheck.onApplicantStatusChanged'>).reviewStatus;
if (applicantStatus === 'pending' || applicantStatus === 'completed') {
setApplicationSubmitted(true);
}
if ((payload as any).reviewResult.reviewAnswer === 'GREEN') {
setApplicationSubmitted(true);
}