From 3cb8e4762814572666ca975d2e05ba75d0874c95 Mon Sep 17 00:00:00 2001 From: Eduardo Quiros Date: Sat, 20 Aug 2022 19:04:02 -0600 Subject: [PATCH] add name as parameter for onInputChange --- web-ui/web-react/src/components/Inquilinos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web-ui/web-react/src/components/Inquilinos.js b/web-ui/web-react/src/components/Inquilinos.js index 30dbbea1..da8aa512 100644 --- a/web-ui/web-react/src/components/Inquilinos.js +++ b/web-ui/web-react/src/components/Inquilinos.js @@ -419,7 +419,7 @@ const Inquilinos = () => { ) } - const onInputChange = (e) => { + const onInputChange = (e, name) => { const value = (e.target && e.target.value) || '' let _tenant = { ...tenant } _tenant[`${name}`] = value