Skip to content

Commit ab431a2

Browse files
release: nps fix
### Bug Fixes - **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically.
2 parents 20ba211 + 6051e6e commit ab431a2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

composer.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

inc/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public function add_nps_form() {
368368
'apiHost' => 'https://app.formbricks.com',
369369
'userId' => 'neve_fse_' . $website_url,
370370
'attributes' => array(
371-
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'neve_fse_install', 0 ) ) / DAY_IN_SECONDS ) ),
371+
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'neve_fse_install', time() ) ) / DAY_IN_SECONDS ) ),
372372
),
373373
);
374374

0 commit comments

Comments
 (0)