Skip to content

Commit

Permalink
log plan and enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Jan 8, 2025
1 parent 2ea6c98 commit 33b3d63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/common/utils/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ const Utils = Object.assign({}, require('./base/_utils'), {
},

getPlanName: (plan: string) => {
console.error(
`Plan: ${plan} Enterprise: ${global.flagsmithVersion?.backend.is_enterprise}`,
)

if (plan && plan.includes('free')) {
return planNames.free
}
Expand All @@ -354,6 +358,7 @@ const Utils = Object.assign({}, require('./base/_utils'), {
if (plan && plan.includes('start-up')) {
return planNames.startup
}

if (
global.flagsmithVersion?.backend.is_enterprise ||
(plan && plan.includes('enterprise'))
Expand Down

0 comments on commit 33b3d63

Please sign in to comment.