add name as parameter for onInputChange

This commit is contained in:
Eduardo Quiros 2022-08-20 19:04:02 -06:00
parent 2a325d4e2e
commit 3cb8e47628
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 1 additions and 1 deletions

View File

@ -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