chore: pass tpsl errors

This commit is contained in:
asiaznik 2024-03-08 14:46:54 +01:00
parent dbe31e6a67
commit b26c1bac7a
No known key found for this signature in database
GPG Key ID: 4D5C8972A02C52C2

View File

@ -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>