Skip to content

Commit

Permalink
Hide licence management for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
beganovich committed Jun 16, 2023
1 parent 2fefa59 commit d6411ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/account-management/component/Plan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license https://www.elastic.co/licensing/elastic-license
*/

import { date, isHosted, isSelfHosted } from '$app/common/helpers';
import { date, isDemo, isHosted, isSelfHosted } from '$app/common/helpers';
import { useCurrentAccount } from '$app/common/hooks/useCurrentAccount';
import { useCurrentCompanyDateFormats } from '$app/common/hooks/useCurrentCompanyDateFormats';
import { useCurrentUser } from '$app/common/hooks/useCurrentUser';
Expand Down Expand Up @@ -54,7 +54,7 @@ export function Plan() {
</Element>
)}

{isSelfHosted() && <License />}
{isSelfHosted() && !isDemo() && <License />}
</Card>
);
}

0 comments on commit d6411ab

Please sign in to comment.