From 98ce1d0a25f22330f8d579d0eb30864999715981 Mon Sep 17 00:00:00 2001 From: "m.ray" <16125548+MadalinaRaicu@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:27:43 +0200 Subject: [PATCH] fix(trading): closed markets filter (#5691) Co-authored-by: Matthew Russell Co-authored-by: Edd --- libs/i18n/src/locales/en/trading.json | 2 +- libs/markets/src/lib/market-utils.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/i18n/src/locales/en/trading.json b/libs/i18n/src/locales/en/trading.json index 4543c0f62..551ce3d72 100644 --- a/libs/i18n/src/locales/en/trading.json +++ b/libs/i18n/src/locales/en/trading.json @@ -300,7 +300,7 @@ "Unknown": "Unknown", "Unknown settlement date": "Unknown settlement date", "Vega Reward pot": "Vega Reward pot", - "Vega Wallet <0>full featured<0>": "Vega Wallet <0>full featured<0>", + "Vega Wallet <0>full featured": "Vega Wallet <0>full featured", "Vega chart": "Vega chart", "Vesting": "Vesting", "Vesting multiplier": "Vesting multiplier", diff --git a/libs/markets/src/lib/market-utils.ts b/libs/markets/src/lib/market-utils.ts index c83ed0b95..f0b93d109 100644 --- a/libs/markets/src/lib/market-utils.ts +++ b/libs/markets/src/lib/market-utils.ts @@ -113,6 +113,8 @@ export const filterAndSortClosedMarkets = (markets: MarketMaybeWithData[]) => { return [ MarketState.STATE_SETTLED, MarketState.STATE_TRADING_TERMINATED, + MarketState.STATE_CLOSED, + MarketState.STATE_CANCELLED, ].includes(m.data?.marketState || m.state); }); };