fix: update handleChange to use optional chaining and add "use client" directive in Connect component

This commit is contained in:
hamed
2026-07-08 18:24:33 +03:30
parent ee47b535d8
commit a56b7e8de5
5 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ function Field({
placeholder={isPlaceHolder && title}
className="!w-full !mx-auto !bg-[#FFF]"
onChange={(e) => {
handleChange(name || "", e.target.value);
handleChange?.(name || "", e.target.value);
}}
sx={{
"& .MuiFormLabel-root": {