Skip to content

Commit 4ae3803

Browse files
committed
better error handling
1 parent 60aeeaf commit 4ae3803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/builder/src/components/providers/identity/credentials.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const fetchVerifiableCredential = async (
9696
throw new VerificationError("No credential found");
9797
}
9898

99-
if (response.data[0].credential == null) {
99+
if (response.data[0].credential.issuer.length === 0) {
100100
throw new VerificationError(
101101
"Error verifying ownership - ensure you are a public member of the org"
102102
);

0 commit comments

Comments
 (0)