Skip to content

Commit

Permalink
fix: more lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alfetopito committed Jan 16, 2025
1 parent 1deb6be commit 7b6fc7c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { useEffect, useMemo } from 'react'
import { FractionUtils, getWrappedToken } from '@cowprotocol/common-utils'
import { Fraction, Token } from '@uniswap/sdk-core'

import { Nullish } from 'types'

import { updateLimitRateAtom } from 'modules/limitOrders/state/limitRateAtom'
import { useDerivedTradeState } from 'modules/trade/hooks/useDerivedTradeState'
import { useTradeQuote } from 'modules/tradeQuote'
import { useUsdPrice } from 'modules/usdAmount/hooks/useUsdPrice'
import { Nullish } from 'types'

export function QuoteObserverUpdater() {
const { response } = useTradeQuote()
const state = useDerivedTradeState()

const updateLimitRateState = useSetAtom(updateLimitRateAtom)
Expand All @@ -26,7 +25,9 @@ export function QuoteObserverUpdater() {

useEffect(() => {
updateLimitRateState({ marketRate: price, isLoadingMarketRate: isLoading })
}, [price, isLoading])
}, [price, isLoading, updateLimitRateState])

return null
}

function useSpotPrice(
Expand Down

0 comments on commit 7b6fc7c

Please sign in to comment.