Skip to content

Commit

Permalink
v1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrouid committed May 5, 2020
1 parent cce2a88 commit 4a61706
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web3modal",
"version": "1.6.0",
"version": "1.6.1",
"description": "A single Web3 / Ethereum provider solution for all Wallets",
"keywords": [
"web3",
Expand Down
4 changes: 2 additions & 2 deletions src/core/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ export class Core {
new Promise(async (resolve, reject) => {
this.on(CONNECT_EVENT, provider => resolve(provider));
this.on(ERROR_EVENT, error => reject(error));
this.on(CLOSE_EVENT, () => reject('Modal closed by user));
this.on(CLOSE_EVENT, () => reject("Modal closed by user"));
await this.toggleModal();
});

public connectTo = (id: string): Promise<any> =>
new Promise(async (resolve, reject) => {
this.on(CONNECT_EVENT, provider => resolve(provider));
this.on(ERROR_EVENT, error => reject(error));
this.on(CLOSE_EVENT, () => reject('Modal closed by user));
this.on(CLOSE_EVENT, () => reject("Modal closed by user"));
const provider = this.providerController.getProvider(id);
if (!provider) {
return reject(
Expand Down

0 comments on commit 4a61706

Please sign in to comment.