fix(frontend): set addon options number input to empty string when undefined

This commit is contained in:
Viren070
2024-12-29 16:42:38 +00:00
parent 0e8373e4a9
commit 482f776503
@@ -118,7 +118,7 @@ const AddonsList: React.FC<AddonsListProps> = ({
{option.type === 'number' && (
<input
type="number"
value={addon.options[option.id]}
value={addon.options[option.id] || ''}
onChange={(e) =>
updateOption(index, option.id, e.target.value ? e.target.value : undefined)
}