Skip to content

Commit

Permalink
Merge pull request #135 from argentlabs/chore/change-useStarknetkitCo…
Browse files Browse the repository at this point in the history
…nnectModal-signature

Chore: set `options` as optional in `useStarknetkitConnectModal`
  • Loading branch information
Cussone authored Oct 2, 2024
2 parents 2d43feb + 9000289 commit 6610a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useStarknetkitConnectModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ type UseStarknetkitConnectors = {
}

const useStarknetkitConnectModal = (
options: ConnectOptionsWithConnectors,
options?: ConnectOptionsWithConnectors,
): UseStarknetkitConnectors => {
const starknetkitConnectModal = async (): Promise<ModalResult> => {
return await connect({
...options,
resultType: options.resultType ?? "connector",
resultType: options?.resultType ?? "connector",
})
}

Expand Down

0 comments on commit 6610a8b

Please sign in to comment.