diff --git a/src/main.ts b/src/main.ts index c3ff489..a941d35 100644 --- a/src/main.ts +++ b/src/main.ts @@ -139,9 +139,8 @@ export const connect = async ({ callback: async (connector: StarknetkitConnector | null) => { try { selectedConnector = connector - const connectorData = (await connector?.connect()) ?? null - if (resultType === "wallet") { + const connectorData = (await connector?.connect()) ?? null if (connector !== null) { setStarknetLastConnectedWallet(connector.id) } @@ -155,7 +154,7 @@ export const connect = async ({ resolve({ connector, wallet: null, - connectorData, + connectorData: null, }) } } catch (error) {