diff --git a/apps/trading/README.md b/apps/trading/README.md index a8517fd57..a2d26e06c 100644 --- a/apps/trading/README.md +++ b/apps/trading/README.md @@ -54,3 +54,5 @@ To run the UI automation tests with a mocked API, run: ```bash yarn nx run trading-e2e:e2e ``` + +To run tests with market sim please read [the readme](e2e/README.md). diff --git a/libs/markets/src/lib/components/market-info/market-info-accordion.tsx b/libs/markets/src/lib/components/market-info/market-info-accordion.tsx index 10a242e4b..b24a0a78b 100644 --- a/libs/markets/src/lib/components/market-info/market-info-accordion.tsx +++ b/libs/markets/src/lib/components/market-info/market-info-accordion.tsx @@ -262,6 +262,7 @@ export const MarketInfoAccordion = ({ } /> diff --git a/libs/markets/src/lib/components/market-info/market-info-panels.tsx b/libs/markets/src/lib/components/market-info/market-info-panels.tsx index ee4a049b9..3152af2ed 100644 --- a/libs/markets/src/lib/components/market-info/market-info-panels.tsx +++ b/libs/markets/src/lib/components/market-info/market-info-panels.tsx @@ -698,17 +698,13 @@ export const PriceMonitoringBoundsInfoPanel = ({ const quoteUnit = getQuoteName(market); - const trigger = - market.priceMonitoringSettings?.parameters?.triggers?.[triggerIndex]; - const bounds = data?.priceMonitoringBounds?.[triggerIndex]; + const trigger = bounds?.trigger; if (!trigger) { - console.error( - `Could not find data for trigger ${triggerIndex} (market id: ${market.id})` - ); return null; } + return ( <>