Skip to content

Commit 1f0312e

Browse files
release: nps fix
### Bug Fixes - **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically.
2 parents bbe0f48 + 835f8db commit 1f0312e

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

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
@@ -321,7 +321,7 @@ public function add_nps_form() {
321321
'apiHost' => 'https://app.formbricks.com',
322322
'userId' => 'raft_' . $website_url,
323323
'attributes' => array(
324-
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'raft_install', 0 ) ) / DAY_IN_SECONDS ) ),
324+
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'raft_install', time() ) ) / DAY_IN_SECONDS ) ),
325325
),
326326
);
327327

0 commit comments

Comments
 (0)