Skip to content

Commit

Permalink
fix: disable cancel
Browse files Browse the repository at this point in the history
f
  • Loading branch information
nguyenhoaidanh committed Sep 12, 2023
1 parent ba1f1ee commit ea202aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/swapv2/LimitOrder/ListOrder/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,13 @@ export default forwardRef<ListOrderHandle>(function ListLimitOrder(props, ref) {

const showEditOrderModal = useCallback(
(order: LimitOrder) => {
setFlowState({ ...TRANSACTION_STATE_DEFAULT })
setCurrentOrder(order)
setIsOpenEdit(true)
setIsCancelAll(false)
mixpanelHandler(MIXPANEL_TYPE.LO_CLICK_EDIT_ORDER, getPayloadTracking(order, networkInfo.name))
},
[mixpanelHandler, networkInfo.name],
[mixpanelHandler, networkInfo.name, setFlowState],
)

const totalOrderNotCancelling = useMemo(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function CancelStatusCountDown({

if (errorMessage || attemptingTxn)
return (
<CountDownWrapper style={{ flexDirection: 'row', justifyContent: 'center' }}>
<CountDownWrapper style={{ flexDirection: 'row', justifyContent: 'center', minHeight: 50 }}>
{errorMessage ? (
<>
<WarningIcon color={theme.red} />
Expand Down

0 comments on commit ea202aa

Please sign in to comment.