aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/Items/RegisterItemForm.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-10 08:03:19 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-10 08:03:19 +0530
commit33c10cfa027d769c1d02a54bad766f431b1196ee (patch)
treebb487bcecf9944250c5a94267295ec917e087529 /src/components/Form/Items/RegisterItemForm.js
parent86e800430360ac3af422faf1f6f7317aea9b1a19 (diff)
added sgst, cgst, igst support instead of GST as a whole
Diffstat (limited to 'src/components/Form/Items/RegisterItemForm.js')
-rw-r--r--src/components/Form/Items/RegisterItemForm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Form/Items/RegisterItemForm.js b/src/components/Form/Items/RegisterItemForm.js
index b57db9f..6ad4c1f 100644
--- a/src/components/Form/Items/RegisterItemForm.js
+++ b/src/components/Form/Items/RegisterItemForm.js
@@ -45,11 +45,12 @@ const RegisterItemForm = (props) => {
.then((res) => {
console.log(res);
props.setVisibility(false);
+ props.updateItemsList();
})
.catch((err) => {
console.log(err);
+ alert("Something went wrong, please check the log by opening the console.")
});
- props.updateItemsList();
}