Skip to content

Commit e214ad9

Browse files
committed
fix: swap approve check
1 parent af88c27 commit e214ad9

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)