diff --git a/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx b/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx index 935442b1c4..14d92dd28b 100644 --- a/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx +++ b/apps/explorer/src/components/orders/OrdersUserDetailsTable/index.tsx @@ -167,7 +167,7 @@ const OrdersUserDetailsTable: React.FC = (props) => { const canceledAndExpiredCount = orders?.filter(isExpiredOrCanceled).length || 0 const preSigningCount = orders?.filter((order) => order.status === 'signing').length || 0 const showFilter = canceledAndExpiredCount > 0 || preSigningCount > 0 - const allOrdersAreHidden = + const areOrdersAllHidden = orders?.length === (showPreSigning ? 0 : preSigningCount) + (showCanceledAndExpired ? 0 : canceledAndExpiredCount) const invertLimitPrice = (): void => { @@ -207,7 +207,7 @@ const OrdersUserDetailsTable: React.FC = (props) => { )} - {!allOrdersAreHidden && ( + {!areOrdersAllHidden && ( @@ -231,7 +231,7 @@ const OrdersUserDetailsTable: React.FC = (props) => { } body={ <> - {!allOrdersAreHidden ? ( + {!areOrdersAllHidden ? ( orders.map((item) => (