mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
bugfix: mark onboarding responses as finished in formbricks (#338)
This commit is contained in:
@@ -54,9 +54,13 @@ const Objective: React.FC<ObjectiveProps> = ({ next, skip, formbricksResponseId
|
||||
process.env.NEXT_PUBLIC_FORMBRICKS_ONBOARDING_SURVEY_ID &&
|
||||
formbricksResponseId
|
||||
) {
|
||||
const res = await updateResponse(formbricksResponseId, {
|
||||
objective: selectedObjective.label,
|
||||
});
|
||||
const res = await updateResponse(
|
||||
formbricksResponseId,
|
||||
{
|
||||
objective: selectedObjective.label,
|
||||
},
|
||||
true
|
||||
);
|
||||
if (!res.ok) {
|
||||
console.error("Error updating response", res.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user