diff --git a/frontend/src/components/TradeBox/CancelButton.tsx b/frontend/src/components/TradeBox/CancelButton.tsx index f95b9ca3..c0e034bc 100644 --- a/frontend/src/components/TradeBox/CancelButton.tsx +++ b/frontend/src/components/TradeBox/CancelButton.tsx @@ -30,6 +30,9 @@ const CancelButton = ({ const noConfirmation = Boolean(order?.is_maker && [0, 1, 2].includes(order?.status)) || Boolean(order?.is_taker && order?.status === 3); + const noBond = + Boolean(order?.is_maker && order?.status === 0) || + Boolean(order?.is_taker && order?.status === 3); return ( @@ -48,7 +51,7 @@ const CancelButton = ({ variant='outlined' color='secondary' onClick={ - noConfirmation + noBond ? () => { setOpenCancelWarning(true); } diff --git a/requirements.txt b/requirements.txt index 939a3b5c..ae4c196a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -28,7 +28,7 @@ drf-spectacular==0.28.0 drf-spectacular-sidecar==2024.12.1 django-cors-headers==4.6.0 base91==1.0.1 -nostr-sdk==0.41.0 +nostr-sdk==0.35.1 pygeohash==1.2.0 asgiref == 3.8.1 secp256k1 \ No newline at end of file