Skip to content

Commit

Permalink
release: nps fix
Browse files Browse the repository at this point in the history
### Bug Fixes

- **Fix NPS Survey**: Fixed survey appearing instantly when theme installed programmatically.
  • Loading branch information
HardeepAsrani authored Mar 11, 2024
2 parents 01528e7 + f23f122 commit 2536440
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public function add_nps_form() {
'apiHost' => 'https://app.formbricks.com',
'userId' => 'fork_' . $website_url,
'attributes' => array(
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'fork_install', 0 ) ) / DAY_IN_SECONDS ) ),
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'fork_install', time() ) ) / DAY_IN_SECONDS ) ),
),
);

Expand Down

0 comments on commit 2536440

Please sign in to comment.