From dbe31e6a6762d27ffc06e219c09bb641851c5cd8 Mon Sep 17 00:00:00 2001 From: asiaznik Date: Fri, 8 Mar 2024 14:44:19 +0100 Subject: [PATCH] chore: remove redundant error placeholders --- .../deal-ticket/deal-ticket-price-tp-sl.tsx | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-price-tp-sl.tsx b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-price-tp-sl.tsx index 51198284d..99e39e14a 100644 --- a/libs/deal-ticket/src/components/deal-ticket/deal-ticket-price-tp-sl.tsx +++ b/libs/deal-ticket/src/components/deal-ticket/deal-ticket-price-tp-sl.tsx @@ -4,7 +4,6 @@ import type { OrderFormValues } from '../../hooks/use-form-values'; import { determinePriceStep, useValidateAmount } from '@vegaprotocol/utils'; import { TradingFormGroup, - TradingInputError, Tooltip, FormGroup, Input, @@ -32,30 +31,6 @@ export const DealTicketPriceTakeProfitStopLoss = ({ const validateAmount = useValidateAmount(); const priceStep = determinePriceStep(market); - const renderTakeProfitError = () => { - if (takeProfitError) { - return ( - - {takeProfitError} - - ); - } - - return null; - }; - - const renderStopLossError = () => { - if (stopLossError) { - return ( - - {stopLossError} - - ); - } - - return null; - }; - return (
@@ -165,8 +140,6 @@ export const DealTicketPriceTakeProfitStopLoss = ({
- {renderTakeProfitError()} - {renderStopLossError()} ); };