fix(web): actions ratio limit support decimal values (#1100)

fix(web): make NumberField support decimal values
This commit is contained in:
stacksmash76 2023-09-10 17:50:24 +02:00 committed by GitHub
parent bdea9599d2
commit 1215036d89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -263,7 +263,8 @@ const TypeForm = ({ action, idx, clients }: TypeFormProps) => {
name={`actions.${idx}.limit_ratio`}
label="Ratio limit"
placeholder="Takes any number (0 is no limit)"
step={1} // 0.5 does not work
step={0.25}
isDecimal
/>
<NumberField
name={`actions.${idx}.limit_seed_time`}