Skip to content

Commit 3e4b1cd

Browse files
committed
Merge branch 'feat/complete-chakra-refactor' of https://github.com/IndexCoop/index-app into feat/complete-chakra-refactor
2 parents 879b444 + a0b11b7 commit 3e4b1cd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib/hooks/use-best-quote/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const useBestQuote = (
4242
outputToken: Token,
4343
) => {
4444
const publicClient = usePublicClient()
45-
const { address, provider, rpcUrl } = useWallet()
45+
const { address, provider } = useWallet()
4646
const { chainId: networkChainId } = useNetwork()
4747
const { logEvent } = useAnalytics()
4848
// Assume mainnet when no chain is connected (to be able to fetch quotes)
@@ -80,7 +80,7 @@ export const useBestQuote = (
8080
return
8181
}
8282

83-
if (!provider || !publicClient || !chainId || !address || !rpcUrl) {
83+
if (!provider || !publicClient || !chainId || !address) {
8484
console.error('Error fetching quotes - no provider or chain id present')
8585
return
8686
}
@@ -169,7 +169,6 @@ export const useBestQuote = (
169169
nativeTokenPrice,
170170
provider,
171171
publicClient,
172-
rpcUrl,
173172
],
174173
)
175174

0 commit comments

Comments
 (0)