Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
fix: removed parse of proverDeleteCredential return type (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht authored Jan 10, 2022
1 parent bc48dad commit 38db441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ const indy = {

async proverDeleteCredential(wh: WalletHandle, credId: CredId): Promise<void> {
if (Platform.OS === 'ios') {
return JSON.parse(await IndySdk.proverDeleteCredential(credId, wh))
return await IndySdk.proverDeleteCredential(credId, wh)
}
return JSON.parse(await IndySdk.proverDeleteCredential(wh, credId))
return await IndySdk.proverDeleteCredential(wh, credId)
},

// NOTE: This method is deprecated because immediately returns all fetched credentials. Use proverSearchCredentials() to fetch records by small batches.
Expand Down

0 comments on commit 38db441

Please sign in to comment.