Skip to content

Commit

Permalink
fix: condition to check if did doc already exists (#16)
Browse files Browse the repository at this point in the history
Signed-off-by: Sai Ranjit Tummalapalli <[email protected]>
  • Loading branch information
sairanjit authored Dec 6, 2023
1 parent ef5b98f commit 9237f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/registrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class PolygonDID {

const resolveDidDoc = await this.registry.getDIDDoc(parsedDid.didAddress)

if (!resolveDidDoc) {
if (resolveDidDoc) {
throw new Error('The DID document already registered!')
}

Expand Down

0 comments on commit 9237f21

Please sign in to comment.