fix: support six-decimal steps in model pricing editor
This commit is contained in:
@@ -522,7 +522,7 @@ function PriceField({ label, hint, value, onChange }: PriceFieldProps) {
|
||||
<Label className='text-muted-foreground text-xs'>{label}</Label>
|
||||
<DraftNumberInput
|
||||
min={0}
|
||||
step={0.01}
|
||||
step={0.000001}
|
||||
value={Number.isFinite(value) ? value : 0}
|
||||
onValueChange={onChange}
|
||||
className='h-8 w-full'
|
||||
@@ -1276,7 +1276,7 @@ function RuleGroupCard({
|
||||
<Label className='text-xs'>{t('Multiplier')}</Label>
|
||||
<DraftNumberInput
|
||||
min={0}
|
||||
step={0.01}
|
||||
step={0.000001}
|
||||
value={group.multiplier}
|
||||
onValueChange={(value) =>
|
||||
onChange({ ...group, multiplier: String(value) })
|
||||
|
||||
Reference in New Issue
Block a user