fix: multiple surveys might be showing at the same time (#2179)

This commit is contained in:
Matti Nannt
2024-03-04 12:15:06 +01:00
committed by GitHub
parent 673832a7e1
commit c5bdbc89ca
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@formbricks/js",
"license": "MIT",
"version": "1.6.1",
"version": "1.6.2",
"description": "Formbricks-js allows you to connect your app to Formbricks, display surveys and trigger events.",
"homepage": "https://formbricks.com",
"repository": {

View File

@@ -29,7 +29,7 @@ export const renderWidget = async (survey: TSurvey) => {
logger.debug("A survey is already running. Skipping.");
return;
}
setIsSurveyRunning(false);
setIsSurveyRunning(true);
if (survey.delay) {
logger.debug(`Delaying survey by ${survey.delay} seconds.`);