From 3d3e96972a950aacb8966875203f2e6dd87d30d7 Mon Sep 17 00:00:00 2001 From: Julio Sgarbi Date: Wed, 28 Feb 2024 10:52:40 -0300 Subject: [PATCH] fix validation to check if user is trial expired --- src/components/DataManager/Toolbar/instruments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DataManager/Toolbar/instruments.js b/src/components/DataManager/Toolbar/instruments.js index 8135bd59..8e45eb58 100644 --- a/src/components/DataManager/Toolbar/instruments.js +++ b/src/components/DataManager/Toolbar/instruments.js @@ -24,7 +24,7 @@ const style = { // Check if user is self-serve const isSelfServe = isFF(FF_SELF_SERVE) && window.APP_SETTINGS.billing.enterprise; // Check if user is self-serve and has expired trial -const isSelfServeExpiredTrial = isSelfServe && window.APP_SETTINGS.billing.checks.is_license_expired; +const isSelfServeExpiredTrial = isSelfServe && window.APP_SETTINGS.billing.checks.is_license_expired && !window.APP_SETTINGS.subscription.current_period_end; // Check if user is self-serve and has expired subscription const isSelfServeExpiredSubscription = isSelfServe && window.APP_SETTINGS.subscription.current_period_end && new Date(window.APP_SETTINGS.subscription.current_period_end) < new Date(); // Check if user is self-serve and has expired trial or subscription