diff --git a/client/src/containers/Items/ItemFormPrimarySection.js b/client/src/containers/Items/ItemFormPrimarySection.js index 621609ea8..531683b7c 100644 --- a/client/src/containers/Items/ItemFormPrimarySection.js +++ b/client/src/containers/Items/ItemFormPrimarySection.js @@ -31,7 +31,7 @@ export default function ItemFormPrimarySection() { const nameFieldRef = useRef(null); // Formik context. - const { values: { itemType } } = useFormikContext(); + const { values: { type } } = useFormikContext(); useEffect(() => { // Auto focus item name field once component mount. @@ -87,7 +87,7 @@ export default function ItemFormPrimarySection() { form.setFieldValue('type', _value); })} selectedValue={value} - disabled={itemType === 'inventory'} + disabled={type === 'inventory'} > } value="service" /> } value="non-inventory" />