diff --git a/src/inventary/CreateInventary.js b/src/inventary/CreateInventary.js index f69408fbf89b432ec74f9316578c4b6b848652cb..2c1674c915ae606a49bf8d4422aa97e4ab4146c1 100644 --- a/src/inventary/CreateInventary.js +++ b/src/inventary/CreateInventary.js @@ -38,7 +38,7 @@ function CreateInventary() { }; }; - const disabled = !picks; + const disabled = picks.length == 0; const supplierOptions = [<option key=""></option>].concat( suppliers.map((s) => <option key={s.ID}>{s.name}</option>) @@ -77,7 +77,7 @@ function CreateInventary() { <Form.Group as={Row}> <Col> <div className="text-right"> - <Button type="submit" disabled={disabled}> + <Button variant="primary" type="submit" disabled={disabled}> Añadir entrada </Button> </div>