From e9f73d906ae323ad753736cf4e00601496e50098 Mon Sep 17 00:00:00 2001 From: Hardeep Asrani Date: Fri, 1 Mar 2024 23:16:37 +0530 Subject: [PATCH] fix: nps survery appearing on new installs Fixes the issue with nps survey appearing in new installs when the theme is downloaded programmatically. --- inc/Admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Admin.php b/inc/Admin.php index 59e3b44..84ac0c9 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -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 ) ), ), );