Skip to content

Commit

Permalink
fix: check error msg length
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Jul 18, 2024
1 parent 25c7675 commit 7357300
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/claims/claims.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1503,8 +1503,11 @@ export class ClaimsService {
role
);
}
issuerVerified = issuerVerified && issuerVerificationResult.verified;
errors.push(issuerVerificationResult.error);
const { verified, error } = issuerVerificationResult;
issuerVerified = issuerVerified && verified;
if (error.length > 0) {
errors.push(error);
}
} catch (e) {
issuerVerified = false;
errors.push((e as Error).message);
Expand Down

0 comments on commit 7357300

Please sign in to comment.