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:
Alberto-Audrix committed 2026-09-07 10:43:54 +07:00
1 parent 4439e3b7b1
commit 75eb218558
8 files changed
+76 -34

No files matched your search

+2 -3
View File
@@ -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>