Skip to content

Commit

Permalink
fixed minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vishwas1 committed Jan 16, 2025
1 parent f0f2086 commit 07b784d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/credential/services/credential.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class CredentialService {
if (
firstResponse &&
firstResponse.data &&
firstResponse.totalCount > 0
firstResponse.totalCount.length > 0
) {
metadata['transactionStatus'] = firstResponse.data;
if (firstResponse.data.findIndex((x) => x['status'] == 0) >= 0) {
Expand All @@ -364,6 +364,7 @@ export class CredentialService {
}
}

console.log({ wasTransactionSuccess });
/// Retrive status from the blockchain only when status = 0, otherwise skip
if (wasTransactionSuccess) {
try {
Expand Down

0 comments on commit 07b784d

Please sign in to comment.