From a75484f0dd333fafd03ac90062c7718dd40acc2e Mon Sep 17 00:00:00 2001 From: Alfetopito Date: Thu, 16 Jan 2025 10:53:45 +0000 Subject: [PATCH] fix: more lint issues --- .../limitOrders/updaters/QuoteObserverUpdater/index.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/cowswap-frontend/src/modules/limitOrders/updaters/QuoteObserverUpdater/index.tsx b/apps/cowswap-frontend/src/modules/limitOrders/updaters/QuoteObserverUpdater/index.tsx index 37e1719a19..611944dafc 100644 --- a/apps/cowswap-frontend/src/modules/limitOrders/updaters/QuoteObserverUpdater/index.tsx +++ b/apps/cowswap-frontend/src/modules/limitOrders/updaters/QuoteObserverUpdater/index.tsx @@ -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) @@ -26,7 +25,9 @@ export function QuoteObserverUpdater() { useEffect(() => { updateLimitRateState({ marketRate: price, isLoadingMarketRate: isLoading }) - }, [price, isLoading]) + }, [price, isLoading, updateLimitRateState]) + + return null } function useSpotPrice(