CreateImageWizard/FileSystem: Default to 0 if size input is NaN

This gets rid of prop warnings during tests.
This commit is contained in:
Sanne Raymaekers 2022-04-11 13:50:46 +02:00 committed by jkozol
parent f9d003995d
commit bbd3623414

View file

@ -48,7 +48,7 @@ const SizeUnit = ({ ...props }) => {
type="text"
value={ size }
aria-label="Size text input"
onChange={ v => setSize(isNaN(parseInt(v)) ? '' : parseInt(v)) } />
onChange={ v => setSize(isNaN(parseInt(v)) ? 0 : parseInt(v)) } />
<Select
className="pf-u-w-50"
isOpen={ isOpen }