From 98fd79bc35a978ca84423a3bf48b0fdc3cd39f6e Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Fri, 11 Aug 2023 17:03:17 +0100 Subject: [PATCH] fix(trading): prevent overflow in deal ticket if market fails to load (#4535) --- .../components/deal-ticket/deal-ticket-container.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx index d415bb962..37673f3a8 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-container.tsx @@ -9,7 +9,7 @@ import { useMarket, useMarketPrice, } from '@vegaprotocol/markets'; -import { AsyncRenderer, Splash } from '@vegaprotocol/ui-toolkit'; +import { AsyncRendererInline } from '@vegaprotocol/ui-toolkit'; import { t } from '@vegaprotocol/i18n'; import { DealTicket } from './deal-ticket'; import { FLAGS } from '@vegaprotocol/environment'; @@ -42,7 +42,7 @@ export const DealTicketContainer = ({ const { data: marketPrice } = useMarketPrice(market?.id); const create = useVegaTransactionStore((state) => state.create); return ( - ) ) : ( - -

{t('Could not load market')}

-
+

{t('Could not load market')}

)} -
+ ); };