diff --git a/src/components/MultiHopTrade/components/TradeConfirm/hooks/useTradeButtonProps.tsx b/src/components/MultiHopTrade/components/TradeConfirm/hooks/useTradeButtonProps.tsx index 61dffa7f36a..4e71174a6b8 100644 --- a/src/components/MultiHopTrade/components/TradeConfirm/hooks/useTradeButtonProps.tsx +++ b/src/components/MultiHopTrade/components/TradeConfirm/hooks/useTradeButtonProps.tsx @@ -1,5 +1,5 @@ import type { SupportedTradeQuoteStepIndex, TradeQuoteStep } from '@shapeshiftoss/swapper' -import { useCallback, useMemo, useState } from 'react' +import { useCallback, useMemo } from 'react' import { useHistory } from 'react-router-dom' import { useGetTradeQuotes } from 'components/MultiHopTrade/hooks/useGetTradeQuotes/useGetTradeQuotes' import { TradeRoutePaths } from 'components/MultiHopTrade/types' @@ -41,7 +41,6 @@ export const useTradeButtonProps = ({ activeTradeId, isExactAllowance, }: UseTradeButtonPropsProps): TradeButtonProps | undefined => { - const [isSignTxLoading, setIsSignTxLoading] = useState(false) const dispatch = useAppDispatch() const history = useHistory() const confirmedTradeExecutionState = useAppSelector(selectConfirmedTradeExecutionState) @@ -83,8 +82,6 @@ export const useTradeButtonProps = ({ return } - setIsSignTxLoading(true) - executeTrade() }, [executeTrade, swapTxState]) @@ -131,7 +128,7 @@ export const useTradeButtonProps = ({ return { onSubmit: handleSignTx, buttonText, - isLoading: isSignTxLoading || isFetching, + isLoading: isFetching, isDisabled: !tradeQuoteQueryData, } case HopExecutionState.Complete: