chore: pass tpsl errors
This commit is contained in:
parent
dbe31e6a67
commit
b26c1bac7a
@ -79,9 +79,9 @@ export const DealTicketPriceTakeProfitStopLoss = ({
|
|||||||
{...field}
|
{...field}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
{fieldState.error && (
|
{(fieldState.error || takeProfitError) && (
|
||||||
<InputError testId="deal-ticket-error-message-price-take-profit">
|
<InputError testId="deal-ticket-error-message-price-take-profit">
|
||||||
{fieldState.error.message}
|
{fieldState.error?.message || takeProfitError}
|
||||||
</InputError>
|
</InputError>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
@ -129,9 +129,9 @@ export const DealTicketPriceTakeProfitStopLoss = ({
|
|||||||
{...field}
|
{...field}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
{fieldState.error && (
|
{(fieldState.error || stopLossError) && (
|
||||||
<InputError testId="deal-ticket-error-message-price-stop-loss">
|
<InputError testId="deal-ticket-error-message-price-stop-loss">
|
||||||
{fieldState.error.message}
|
{fieldState.error?.message || stopLossError}
|
||||||
</InputError>
|
</InputError>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user