From 0ddbcbd1253e6a3556342da7bad50658e8cd4c86 Mon Sep 17 00:00:00 2001 From: madalinaraicu Date: Fri, 15 Jul 2022 15:00:25 +0200 Subject: [PATCH] fix: order sizes must be whole numbers for this market and input warning size 20 --- libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx | 2 +- libs/orders/src/lib/order-hooks/use-order-validation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx b/libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx index 332449d25..972952f79 100644 --- a/libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx +++ b/libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx @@ -78,7 +78,7 @@ const ERROR = { FIELD_SIZE_MIN: `The amount cannot be lower than "${defaultOrder.step}"`, FIELD_PRICE_REQ: 'You need to provide a price', FIELD_PRICE_MIN: 'The price cannot be negative', - FIELD_PRICE_STEP_NULL: 'Order sizes must be whole numbers for this market', + FIELD_PRICE_STEP_NULL: 'Order sizes must be in whole numbers for this market', FIELD_PRICE_STEP_DECIMAL: `The amount field accepts up to ${market.positionDecimalPlaces} decimal places`, }; diff --git a/libs/orders/src/lib/order-hooks/use-order-validation.tsx b/libs/orders/src/lib/order-hooks/use-order-validation.tsx index 7d87e522a..ed4585b52 100644 --- a/libs/orders/src/lib/order-hooks/use-order-validation.tsx +++ b/libs/orders/src/lib/order-hooks/use-order-validation.tsx @@ -204,7 +204,7 @@ export const useOrderValidation = ({ if (market.positionDecimalPlaces === 0) { return { isDisabled: true, - message: t('Order sizes must be whole numbers for this market'), + message: t('Order sizes must be in whole numbers for this market'), }; } return {