diff --git a/src/pages/customerEditor/index.tsx b/src/pages/customerEditor/index.tsx index d642dfd..b676e82 100644 --- a/src/pages/customerEditor/index.tsx +++ b/src/pages/customerEditor/index.tsx @@ -215,11 +215,17 @@ const CustomerEditor = () => { } }, []) const isDisabled = useMemo(() => { + let count = 0 + for (const i in formData) { + count++ + } + console.log(formData, '5555') + console.log(count, '6666') let empty: any = null if (typeof (formData) == 'undefined') { return } for (const key in formData) { if (key in formData) { - if (formData[key] !== '' && typeof (formData[key]) !== 'undefined') { + if (formData[key] !== '' && typeof (formData[key]) !== 'undefined' && count === 10) { empty = false } else {