Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
fix validation to check if user is trial expired
Browse files Browse the repository at this point in the history
  • Loading branch information
juliosgarbi committed Feb 28, 2024
1 parent d40a1e9 commit 3d3e969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataManager/Toolbar/instruments.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d3e969

Please sign in to comment.