From 62b362ffdfa135a61d1fda3f70f3dc63a706b7a1 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Fri, 30 Apr 2021 11:08:40 +0530 Subject: Fixed issues with empty price field --- src/components/Form/RegisterItemForm.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/components/Form/RegisterItemForm.js b/src/components/Form/RegisterItemForm.js index 864a146..1e2f32d 100644 --- a/src/components/Form/RegisterItemForm.js +++ b/src/components/Form/RegisterItemForm.js @@ -19,9 +19,9 @@ import "./Form.css"; const RegisterItemForm = (props) => { const [newItemNameValue, setNewItemNameValue] = useState(""); const [newItemDescValue, setNewItemDescValue] = useState(""); - const [newItemPriceValue, setNewItemPriceValue] = useState(""); + const [newItemPriceValue, setNewItemPriceValue] = useState(0.00); const [newItemHSNValue, setNewItemHSNValue] = useState(""); - const [newItemGSTValue, setNewItemGSTValue] = useState(""); + const [newItemGSTValue, setNewItemGSTValue] = useState(props.defGSTValue); // const [newItemBrandValue, setNewItemBrandValue] = useState(""); // const [newItemTypeValue, setNewItemTypeValue] = useState(""); @@ -72,7 +72,7 @@ const RegisterItemForm = (props) => {