fix: update handleChange to use optional chaining and add "use client" directive in Connect component
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user