aboutsummaryrefslogtreecommitdiff
path: root/src/components/Form/Items/AddNewItemForm.js
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-11 17:17:26 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-06-11 17:17:26 +0530
commit671c3a765ffc53575f517cef715dc16be5aa43c5 (patch)
tree4f6d7ea1059f339bef6e245638fdb52cd0363844 /src/components/Form/Items/AddNewItemForm.js
parent33c10cfa027d769c1d02a54bad766f431b1196ee (diff)
cleaned up some code and fixed formatter for the client name/address
Diffstat (limited to 'src/components/Form/Items/AddNewItemForm.js')
-rw-r--r--src/components/Form/Items/AddNewItemForm.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Form/Items/AddNewItemForm.js b/src/components/Form/Items/AddNewItemForm.js
index a4710f9..37167fd 100644
--- a/src/components/Form/Items/AddNewItemForm.js
+++ b/src/components/Form/Items/AddNewItemForm.js
@@ -39,7 +39,8 @@ const AddNewItemForm = (props) => {
const setItemInfo = (itemName) =>
(props.savedItems === null || itemName === registerItemPrompt)
? props.registerItemFormVisibility(true)
- : props.savedItems.some((i) => itemName === i.Model.toLowerCase() && applyItemInfo(i))
+ : props.savedItems.some((i) =>
+ itemName === i.Model.toLowerCase() && applyItemInfo(i))
const resetAllValues = () => {
setItemNameValue("");