Skip to content

Commit

Permalink
fix: nps survery appearing on new installs
Browse files Browse the repository at this point in the history
Fixes the issue with nps survey appearing in new installs when the theme is downloaded programmatically.
  • Loading branch information
HardeepAsrani authored Mar 1, 2024
1 parent 9a04662 commit e9f73d9
Showing 1 changed file with 1 addition and 1 deletion.
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' => 'riverbank_' . $website_url,
'attributes' => array(
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'riverbank_install', 0 ) ) / DAY_IN_SECONDS ) ),
'days_since_install' => self::convert_to_category( round( ( time() - get_option( 'riverbank_install', time() ) ) / DAY_IN_SECONDS ) ),
),
);

Expand Down

0 comments on commit e9f73d9

Please sign in to comment.