diff --git a/apps/trading/pages/index.page.tsx b/apps/trading/pages/index.page.tsx
index 40d7be503..e8b3291f2 100644
--- a/apps/trading/pages/index.page.tsx
+++ b/apps/trading/pages/index.page.tsx
@@ -6,11 +6,7 @@ import { Connectors, rest } from '../lib/connectors';
import { LocalStorage } from '@vegaprotocol/storage';
export function Index() {
- // Get keys from vega wallet immediately
- useEagerConnect();
-
- const { publicKeys } = useVegaWallet();
- const { publicKey, onSelect } = useCurrentVegaKey();
+ const { keypair, keypairs, selectPublicKey } = useVegaWallet();
return (
@@ -28,14 +24,17 @@ export function Index() {
Vega wallet
- {publicKey && Current: {publicKey.pub}
}
- {publicKeys?.length && (
+ {keypair && Current: {keypair.pub}
}
+ {keypairs?.length && (