@payloadcms/plugin-import-export
Version:
Import-Export plugin for Payload
15 lines (14 loc) • 401 B
JavaScript
export const validateLimitValue = (value, t, step = 100)=>{
if (value && value < 0) {
return t('validation:lessThanMin', {
label: t('general:value'),
min: 0,
value
});
}
if (value && value % step !== 0) {
return `Limit must be a multiple of ${step}`;
}
return undefined;
};
//# sourceMappingURL=validateLimitValue.js.map