diff --git a/src/components/swapv2/LimitOrder/ListOrder/useRequestCancelOrder.tsx b/src/components/swapv2/LimitOrder/ListOrder/useRequestCancelOrder.tsx index 9997d89b3f..8f7ebffcc8 100644 --- a/src/components/swapv2/LimitOrder/ListOrder/useRequestCancelOrder.tsx +++ b/src/components/swapv2/LimitOrder/ListOrder/useRequestCancelOrder.tsx @@ -254,8 +254,10 @@ export const useProcessCancelOrder = ({ if (signal.aborted) return setCancelStatus(gasLessCancel ? CancelStatus.COUNTDOWN : CancelStatus.WAITING) const expired = data?.orders?.[0]?.operatorSignatureExpiredAt - if (expired) setExpiredTime(expired) - else onDismiss() + if (expired) { + setExpiredTime(expired) + if (expired * 1000 < Date.now()) setCancelStatus(CancelStatus.CANCEL_DONE) + } else onDismiss() } catch (error) { if (signal.aborted) return setExpiredTime(0) diff --git a/src/components/swapv2/LimitOrder/Modals/CancelButtons.tsx b/src/components/swapv2/LimitOrder/Modals/CancelButtons.tsx index 76463ef465..2b9a56452a 100644 --- a/src/components/swapv2/LimitOrder/Modals/CancelButtons.tsx +++ b/src/components/swapv2/LimitOrder/Modals/CancelButtons.tsx @@ -181,7 +181,7 @@ const CancelButtons = ({ isEdit={isEdit} gasAmountDisplay={gasAmountDisplay} buttonGasless={ - +   Close