Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Sep 12, 2023
1 parent 6ba7beb commit e10a55a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/swapv2/LimitOrder/Modals/CancelOrderModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Logo from 'components/Logo'
import Modal from 'components/Modal'
import CancelButtons from 'components/swapv2/LimitOrder/Modals/CancelButtons'
import CancelStatusCountDown from 'components/swapv2/LimitOrder/Modals/CancelStatusCountDown'
import useFetchActiveAllOrders from 'components/swapv2/LimitOrder/useFetchActiveAllOrders'
import useAllActiveOrders from 'components/swapv2/LimitOrder/useFetchActiveAllOrders'
import { useCurrencyV2 } from 'hooks/Tokens'
import { TransactionFlowState } from 'types/TransactionFlowState'

Expand Down Expand Up @@ -57,7 +57,7 @@ function ContentCancel({

const [expiredTime, setExpiredTime] = useState(0)
const [cancelStatus, setCancelStatus] = useState<CancelStatus>(CancelStatus.WAITING)
const { orders = [], ordersSoftCancel = [], supportCancelGasless } = useFetchActiveAllOrders(false && !isCancelAll)
const { orders = [], ordersSoftCancel = [], supportCancelGasless } = useAllActiveOrders(false && !isCancelAll)
const requestCancel = async (type: CancelOrderType) => {
const gasLessCancel = type === CancelOrderType.GAS_LESS_CANCEL
const signal = controller.current.signal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const useIsSupportSoftCancelOrder = () => {
)
}

export default function useFetchActiveAllOrders(disabled = false) {
export default function useAllActiveOrders(disabled = false) {
const { account, chainId } = useActiveWeb3React()
const { data } = useGetListOrdersQuery(
{ chainId, maker: account, status: LimitOrderStatus.ACTIVE, pageSize: 100 },
Expand Down

0 comments on commit e10a55a

Please sign in to comment.