Skip to content

Commit

Permalink
Merge pull request #44 from Codeinwp/fix/issue-116
Browse files Browse the repository at this point in the history
fix: nps survery appearing on new installs
  • Loading branch information
HardeepAsrani authored Mar 11, 2024
2 parents 41e2cf2 + e9f73d9 commit 3245fd9
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 3245fd9

Please sign in to comment.