From fd7a62d244d89baf5925d8dfcec4f2ac2d8466ac Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Tue, 30 Jan 2024 16:43:15 +0000 Subject: [PATCH] Fix hide collab cancel request after fiat sent --- frontend/src/components/TradeBox/CollabCancelAlert.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/TradeBox/CollabCancelAlert.tsx b/frontend/src/components/TradeBox/CollabCancelAlert.tsx index 479579b2..e597f4f7 100644 --- a/frontend/src/components/TradeBox/CollabCancelAlert.tsx +++ b/frontend/src/components/TradeBox/CollabCancelAlert.tsx @@ -10,11 +10,11 @@ interface CollabCancelAlertProps { const CollabCancelAlert = ({ order }: CollabCancelAlertProps): JSX.Element => { const { t } = useTranslation(); let text = ''; - if (order?.pending_cancel === true) { + if (order?.pending_cancel === true && order?.status === 9) { text = t('{{nickname}} is asking for a collaborative cancel', { nickname: order?.is_maker ? order?.taker_nick : order?.maker_nick, }); - } else if (order?.asked_for_cancel === true) { + } else if (order?.asked_for_cancel === true && order?.status === 9) { text = t('You asked for a collaborative cancellation'); }