From edfb0a4e37737aa055438a0fd8df02267f38d759 Mon Sep 17 00:00:00 2001 From: madalinaraicu Date: Fri, 15 Jul 2022 14:35:16 +0200 Subject: [PATCH] fix: don't show trigger if unspecified --- apps/trading/pages/markets/trade-grid.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/trading/pages/markets/trade-grid.tsx b/apps/trading/pages/markets/trade-grid.tsx index 2a856cba8..bef8d85d6 100644 --- a/apps/trading/pages/markets/trade-grid.tsx +++ b/apps/trading/pages/markets/trade-grid.tsx @@ -23,6 +23,7 @@ import { PriceCellChange, } from '@vegaprotocol/ui-toolkit'; import type { CandleClose } from '@vegaprotocol/types'; +import { AuctionTrigger } from '@vegaprotocol/types'; import { MarketTradingMode } from '@vegaprotocol/types'; import capitalize from 'lodash/capitalize'; import startCase from 'lodash/startCase'; @@ -102,7 +103,9 @@ export const TradeMarketHeader = ({
Trading mode - {market.tradingMode === MarketTradingMode.MonitoringAuction + {market.tradingMode === MarketTradingMode.MonitoringAuction && + market.data?.trigger && + market.data.trigger !== AuctionTrigger.Unspecified ? `${formatLabel( market.tradingMode )} - ${market.data?.trigger.toLowerCase()}`