fix: order sizes must be whole numbers for this market and input warning size 20
This commit is contained in:
parent
94a63957cd
commit
0ddbcbd125
@ -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`,
|
||||
};
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user