fix: order sizes must be whole numbers for this market and input warning size 20

This commit is contained in:
madalinaraicu 2022-07-15 14:59:34 +02:00
parent 21d14c5e0b
commit 94a63957cd
3 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ 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 fractional amounts are allowed for this order', FIELD_PRICE_STEP_NULL: 'Order sizes must be whole numbers for this market',
FIELD_PRICE_STEP_DECIMAL: `The amount field accepts up to ${market.positionDecimalPlaces} decimal places`, FIELD_PRICE_STEP_DECIMAL: `The amount field accepts up to ${market.positionDecimalPlaces} decimal places`,
}; };

View File

@ -204,7 +204,7 @@ export const useOrderValidation = ({
if (market.positionDecimalPlaces === 0) { if (market.positionDecimalPlaces === 0) {
return { return {
isDisabled: true, isDisabled: true,
message: t('No fractional amounts are allowed for this order'), message: t('Order sizes must be whole numbers for this market'),
}; };
} }
return { return {

View File

@ -43,7 +43,7 @@ export const InputError = ({
{...props} {...props}
role="alert" role="alert"
> >
<Icon name="warning-sign" size={16} className={iconClassName} /> <Icon name="warning-sign" size={20} className={iconClassName} />
{children} {children}
</div> </div>
); );