Skip to content

Commit

Permalink
fix enterprise tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Jan 17, 2025
1 parent 8ecbdf1 commit 455458b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions web/src/pages/settings/SettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ export const SettingsPage = () => {
const handleTabClick = useCallback(
(tabIndex: number) => {
if (appInfo) {
if (
enterpriseTabs.includes(tabIndex) &&
appInfo.license_info.any_limit_exceeded
) {
if (enterpriseTabs.includes(tabIndex) && appInfo.license_info.enterprise) {
openUpgradeLicenseModal({
modalVariant: UpgradeLicenseModalVariant.ENTERPRISE_NOTICE,
});
Expand Down Expand Up @@ -150,7 +147,7 @@ export const SettingsPage = () => {
useEffect(() => {
if (
appInfo &&
appInfo.license_info.any_limit_exceeded &&
appInfo.license_info.enterprise &&
enterpriseTabs.includes(activeCard)
) {
setActiveCard(0);
Expand Down

0 comments on commit 455458b

Please sign in to comment.