From 671c3a765ffc53575f517cef715dc16be5aa43c5 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Fri, 11 Jun 2021 17:17:26 +0530 Subject: cleaned up some code and fixed formatter for the client name/address --- src/components/Form/Items/AddNewItemForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/Form/Items') 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(""); -- cgit v1.2.3