fix doc weight to show real doc instead of forcing 35-51 range and also fixed bug target weight using total days as reference for target weight instead of doc weight
This commit is contained in:
1 parent
4439e3b7b1
commit
75eb218558
8 files changed
+76
-34
No files matched your search
@@ -461,13 +461,12 @@ const SettingsPage: React.FC = () => {
|
||||
<input
|
||||
type="number"
|
||||
className={`${inputClass} mt-1`}
|
||||
min={35}
|
||||
max={51}
|
||||
min={1}
|
||||
value={chickInWeight}
|
||||
onChange={(e) => {
|
||||
const value = Number(e.target.value);
|
||||
if (Number.isNaN(value)) return;
|
||||
setChickInWeight(Math.min(51, Math.max(35, value)));
|
||||
setChickInWeight(Math.max(1, value));
|
||||
}}
|
||||
/>
|
||||
</label>
|
||||
|
||||
Reference in new issue
Block a user