update feedback widget to add finished flag after sending

This commit is contained in:
Matthias Nannt
2023-01-21 18:26:17 +01:00
parent 14be6ce407
commit 7b72ffb82e
2 changed files with 2 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@formbricks/feedback",
"version": "0.1.9",
"version": "0.2.0",
"source": "src/index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",

View File

@@ -247,6 +247,7 @@ function submit(e: Event) {
pageUrl: window.location.href,
},
customer: config.customer,
finished: true,
};
fetch(`${config.hqUrl || "https://xm.formbricks.com"}/api/capture/forms/${config.formId}/submissions`, {