From 7387a1a55532c69c0421ed6b25dbfd4925f09b9a Mon Sep 17 00:00:00 2001 From: madalinaraicu Date: Fri, 15 Jul 2022 11:15:27 +0200 Subject: [PATCH] fix: fix warning messages based on feedback --- libs/orders/src/lib/order-hooks/use-order-validation.spec.tsx | 4 ++-- libs/orders/src/lib/order-hooks/use-order-validation.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 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 c3d46464e..89eadf9b3 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,8 +78,8 @@ 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: 'No decimal amounts allowed for this order', - FIELD_PRICE_STEP_DECIMAL: `The amount field only takes up to ${market.positionDecimalPlaces} decimals`, + FIELD_PRICE_STEP_NULL: 'No fractional amounts are allowed for this order', + FIELD_PRICE_STEP_DECIMAL: `The amount field accepts up to ${market.positionDecimalPlaces} decimal places`, }; function setup( 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 78d5b5995..865fff957 100644 --- a/libs/orders/src/lib/order-hooks/use-order-validation.tsx +++ b/libs/orders/src/lib/order-hooks/use-order-validation.tsx @@ -204,13 +204,13 @@ export const useOrderValidation = ({ if (market.positionDecimalPlaces === 0) { return { isDisabled: true, - message: t('No decimal amounts allowed for this order'), + message: t('No fractional amounts are allowed for this order'), }; } return { isDisabled: true, message: t( - `The amount field only takes up to ${market.positionDecimalPlaces} decimals` + `The amount field accepts up to ${market.positionDecimalPlaces} decimal places` ), }; }