Skip to content

Commit

Permalink
fix: revert change initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
JGiter committed Sep 30, 2021
1 parent d28a928 commit 1a49f65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/iam.ts
Expand Up @@ -202,12 +202,12 @@ export class IAM extends IAMBase {
initializeMetamask: reinitializeMetamask,
walletProvider,
});
if (createDocument) {
await this.connectToDIDRegistry();
}
if (initCacheServer) {
await this.connectToCacheServer();
}
if (createDocument) {
await this.connectToDIDRegistry();
}
} catch (err) {
if ((err as Error).message === "User closed modal") {
return {
Expand Down

0 comments on commit 1a49f65

Please sign in to comment.