diff --git a/src/hooks/useStarknetkitConnectModal.ts b/src/hooks/useStarknetkitConnectModal.ts index 0727ac3..68c1354 100644 --- a/src/hooks/useStarknetkitConnectModal.ts +++ b/src/hooks/useStarknetkitConnectModal.ts @@ -6,12 +6,12 @@ type UseStarknetkitConnectors = { } const useStarknetkitConnectModal = ( - options: ConnectOptionsWithConnectors, + options?: ConnectOptionsWithConnectors, ): UseStarknetkitConnectors => { const starknetkitConnectModal = async (): Promise => { return await connect({ ...options, - resultType: options.resultType ?? "connector", + resultType: options?.resultType ?? "connector", }) }