Skip to content

Commit

Permalink
Merge branch 'develop' into multihop-confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
NeOMakinG authored Jan 7, 2025
2 parents 191479a + 5968790 commit 111639d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -83,8 +82,6 @@ export const useTradeButtonProps = ({
return
}

setIsSignTxLoading(true)

executeTrade()
}, [executeTrade, swapTxState])

Expand Down Expand Up @@ -131,7 +128,7 @@ export const useTradeButtonProps = ({
return {
onSubmit: handleSignTx,
buttonText,
isLoading: isSignTxLoading || isFetching,
isLoading: isFetching,
isDisabled: !tradeQuoteQueryData,
}
case HopExecutionState.Complete:
Expand Down

0 comments on commit 111639d

Please sign in to comment.