diff --git a/src/app/molecules/power-level-selector/PowerLevelSelector.jsx b/src/app/molecules/power-level-selector/PowerLevelSelector.jsx index 7d531bf4..ca3e8417 100644 --- a/src/app/molecules/power-level-selector/PowerLevelSelector.jsx +++ b/src/app/molecules/power-level-selector/PowerLevelSelector.jsx @@ -11,7 +11,7 @@ function PowerLevelSelector({ value, max, onSelect, }) { const handleSubmit = (e) => { - const powerLevel = e.target.elements['power-level']; + const powerLevel = e.target.elements['power-level']?.value; if (!powerLevel) return; onSelect(Number(powerLevel)); };