Skip to content

Commit

Permalink
Merge pull request #668 from credebl/feat/multiselcet-connections
Browse files Browse the repository at this point in the history
feat: multiselcet connections
  • Loading branch information
sanjay-k1910 authored Apr 23, 2024
2 parents ce650fa + d177b52 commit 642c9db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Issuance/Issuance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as Yup from 'yup';
import { Alert, Button, Card } from 'flowbite-react';
import { Field, FieldArray, Form, Formik } from 'formik';
import { apiStatusCodes, storageKeys } from '../../config/CommonConstant';
import { getFromLocalStorage, setToLocalStorage } from '../../api/Auth';
import { getFromLocalStorage, removeFromLocalStorage, setToLocalStorage } from '../../api/Auth';
import React, { useEffect, useState } from 'react';
import BackButton from '../../commonComponents/backbutton';
import type { AxiosResponse } from 'axios';
Expand Down Expand Up @@ -187,6 +187,8 @@ const IssueCred = () => {
if (data?.statusCode === apiStatusCodes.API_STATUS_CREATED) {
setSuccess(data?.message);
window.location.href = `${pathRoutes.organizations.issuedCredentials}`;
await removeFromLocalStorage(storageKeys.SELECTED_CONNECTIONS);
await removeFromLocalStorage(storageKeys.SELECTED_USER);
} else {
setFailure(issueCredRes as string);
setIssuanceLoader(false);
Expand Down

0 comments on commit 642c9db

Please sign in to comment.