Skip to content

Commit

Permalink
Fix: Update notification message for deferred LPID credential request
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed May 2, 2024
1 parent 2f9f297 commit 4a794a9
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/views/company-views/components/landing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,11 +443,19 @@ export const LandingPage = () => {
const onRequestCredentialSubmit = (organisationId: string, schemaId: string) => {
console.log(organisationId);
console.log(schemaId);
setCredentialRequestProgressMessage(t('Your request is being processed. Once processed, your configured wallet will be notified.'));
setTimeout(() => {
setCredentialRequestProgressMessage('');
openSuccessNotification(t('Successfully requested credentials'), t('New certificate in your wallet. Click your wallet to view.'));
}, 5000);
if (schemaId === "H3DW1MUWZyBkP5LG4rTYRH:2:Legal Personal Identification Data (LPID):8.0.0") {
setCredentialRequestProgressMessage(t('A request has been sent to the issuer. You will be notified once your request is processed.'));
setTimeout(() => {
setCredentialRequestProgressMessage('');
}, 5000);
} else {
setCredentialRequestProgressMessage(t('Your request is being processed. Once processed, your configured wallet will be notified.'));
setTimeout(() => {
setCredentialRequestProgressMessage('');
openSuccessNotification(t('Successfully requested credentials'), t('New certificate in your wallet. Click your wallet to view.'));
}, 5000);
}

}

const onRequestAllCredentialSubmit = () => {
Expand Down

0 comments on commit 4a794a9

Please sign in to comment.