Skip to content

Commit

Permalink
tweak example
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrouid committed Apr 5, 2022
1 parent 89c1df3 commit 3ab3609
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion example/package-lock.json

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

5 changes: 2 additions & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import Web3Modal from "web3modal";
// @ts-ignore
import WalletConnect from "@walletconnect/web3-provider";
// @ts-ignore
import Torus from "@toruslabs/torus-embed";
// @ts-ignore
import CoinbaseWalletSDK from "@coinbase/wallet-sdk";
// @ts-ignore
import Torus from "@toruslabs/torus-embed";

import Button from "./components/Button";
import Column from "./components/Column";
Expand Down Expand Up @@ -231,7 +231,6 @@ class App extends React.Component<any, any> {

public getProviderOptions = () => {
const infuraId = process.env.REACT_APP_INFURA_ID;
console.log("infuraId", infuraId);
const providerOptions = {
walletconnect: {
package: WalletConnect,
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ProviderController {

this.providers = Object.keys(list.connectors).map((id: string) => {
let providerInfo: IProviderInfo;
if (id === INJECTED_PROVIDER_ID && this.injectedProvider === null) {
if (id === INJECTED_PROVIDER_ID) {
providerInfo = this.injectedProvider || list.providers.FALLBACK;
} else {
providerInfo = getProviderInfoById(id);
Expand Down
2 changes: 1 addition & 1 deletion src/providers/connectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import sequence from "./sequence";

export {
injected,
coinbasewallet,
walletconnect,
boltx,
portis,
Expand All @@ -31,6 +30,7 @@ export {
bitski,
frame,
binancechainwallet,
coinbasewallet,
walletlink,
sequence
};

0 comments on commit 3ab3609

Please sign in to comment.