fix: fix warning messages based on feedback

This commit is contained in:
madalinaraicu 2022-07-15 11:15:27 +02:00
parent 99696238f2
commit 7387a1a555
2 changed files with 4 additions and 4 deletions

View File

@ -78,8 +78,8 @@ const ERROR = {
FIELD_SIZE_MIN: `The amount cannot be lower than "${defaultOrder.step}"`, FIELD_SIZE_MIN: `The amount cannot be lower than "${defaultOrder.step}"`,
FIELD_PRICE_REQ: 'You need to provide a price', FIELD_PRICE_REQ: 'You need to provide a price',
FIELD_PRICE_MIN: 'The price cannot be negative', FIELD_PRICE_MIN: 'The price cannot be negative',
FIELD_PRICE_STEP_NULL: 'No decimal amounts allowed for this order', FIELD_PRICE_STEP_NULL: 'No fractional amounts are allowed for this order',
FIELD_PRICE_STEP_DECIMAL: `The amount field only takes up to ${market.positionDecimalPlaces} decimals`, FIELD_PRICE_STEP_DECIMAL: `The amount field accepts up to ${market.positionDecimalPlaces} decimal places`,
}; };
function setup( function setup(

View File

@ -204,13 +204,13 @@ export const useOrderValidation = ({
if (market.positionDecimalPlaces === 0) { if (market.positionDecimalPlaces === 0) {
return { return {
isDisabled: true, isDisabled: true,
message: t('No decimal amounts allowed for this order'), message: t('No fractional amounts are allowed for this order'),
}; };
} }
return { return {
isDisabled: true, isDisabled: true,
message: t( message: t(
`The amount field only takes up to ${market.positionDecimalPlaces} decimals` `The amount field accepts up to ${market.positionDecimalPlaces} decimal places`
), ),
}; };
} }