diff --git a/apps/trading/pages/_app.page.tsx b/apps/trading/pages/_app.page.tsx index 1093d6de9..2df3e0168 100644 --- a/apps/trading/pages/_app.page.tsx +++ b/apps/trading/pages/_app.page.tsx @@ -122,6 +122,8 @@ function useEagerConnect() { return; } + // Use the connector string in local storage to find the right connector to auto + // connect to const connector = Connectors[cfgObj.connector]; // Developer hasn't provided this connector diff --git a/apps/trading/pages/index.page.tsx b/apps/trading/pages/index.page.tsx index e8b3291f2..713124323 100644 --- a/apps/trading/pages/index.page.tsx +++ b/apps/trading/pages/index.page.tsx @@ -1,9 +1,7 @@ import { Callout, Button } from '@vegaprotocol/ui-toolkit'; -import { rest } from '../lib/connectors'; -import { useVegaWallet, VegaKeyExtended } from '@vegaprotocol/react-helpers'; +import { useVegaWallet } from '@vegaprotocol/react-helpers'; import { useEffect, useMemo, useState } from 'react'; -import { Connectors, rest } from '../lib/connectors'; -import { LocalStorage } from '@vegaprotocol/storage'; +import { Connectors } from '../lib/connectors'; export function Index() { const { keypair, keypairs, selectPublicKey } = useVegaWallet(); @@ -28,7 +26,7 @@ export function Index() { {keypairs?.length && ( - )} + ) : null}

Public keys

{JSON.stringify(keypairs, null, 2)}