mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-04 21:01:28 -05:00
fix: validation error in profile update input (#937)
This commit is contained in:
@@ -41,7 +41,11 @@ const Objective: React.FC<ObjectiveProps> = ({ next, skip, formbricksResponseId,
|
||||
if (selectedObjective) {
|
||||
try {
|
||||
setIsProfileUpdating(true);
|
||||
const updatedProfile = { ...profile, objective: selectedObjective.id };
|
||||
const updatedProfile = {
|
||||
...profile,
|
||||
objective: selectedObjective.id,
|
||||
name: profile.name ?? undefined,
|
||||
};
|
||||
await updateProfileAction(updatedProfile);
|
||||
setIsProfileUpdating(false);
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user