fix: fix warning messages based on feedback
This commit is contained in:
parent
99696238f2
commit
7387a1a555
@ -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(
|
||||||
|
@ -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`
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user