Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop to qa #612

Merged
merged 7 commits into from
Mar 6, 2024
7 changes: 4 additions & 3 deletions src/components/Issuance/EmailIssuance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const EmailIssuance = () => {
transformedData.credentialDefinitionId = credentialSelected;
const transformedJson = JSON.stringify(transformedData, null, 2);
const response = await issueOobEmailCredential(transformedJson);
const { data } = response as AxiosResponse;
const { data } = response as AxiosResponse;

if (data?.statusCode === apiStatusCodes.API_STATUS_CREATED) {
if (data?.data) {
Expand All @@ -134,9 +134,10 @@ const EmailIssuance = () => {
setTimeout(() => {
window.location.href = pathRoutes?.organizations?.issuedCredentials;
}, 500);
} else {
setFailure(response as string);
} else {
setFailure(data?.message);
setLoading(false);
setIssueLoader(false);
setOpenModal(false);
}
} else {
Expand Down
Loading