Skip to content

Commit

Permalink
fix: remove unnecessary code
Browse files Browse the repository at this point in the history
Signed-off-by: bhavanakarwade <[email protected]>
  • Loading branch information
bhavanakarwade committed Sep 4, 2024
1 parent 45d6be3 commit d760e92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Issuance/BulkIssuance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,14 @@ const BulkIssuance = () => {
setLoading(false);
}
} catch (error) {
// setUploadMessage({message: error as string, type: "failure"});
setUploadMessage({ message: (error as Error).message, type: "failure" });
setSuccess(null)
setFailure(null)
}
};


const onSelectChange = (newValue: SingleValue<ICredentials | undefined>, actionMeta: ActionMeta<ICredentials | undefined>) => {
const onSelectChange = (newValue: SingleValue<ICredentials | undefined>) => {
const value = newValue as ICredentials | undefined;
if (schemaType === SchemaTypes.schema_INDY) {
setSelectedTemplate(value?.credentialDefinitionId);
Expand Down

0 comments on commit d760e92

Please sign in to comment.