Skip to content

Commit

Permalink
fix: Update subscription flag management
Browse files Browse the repository at this point in the history
subscription flag is singular
also don't display externalIcon if flag is true
  • Loading branch information
acezard committed Apr 8, 2024
1 parent 6b130e4 commit 90363db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Settings/SettingsContent.jsx
Expand Up @@ -146,7 +146,7 @@ const SettingsContent = ({
>
<MenuIcon icon={HelpIcon} />
{t('help')}
<ExternalLinkIcon />
{!flag('settings.subscription') && <ExternalLinkIcon />}
</a>
</NavItem>
<NavItem>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Settings/index.jsx
Expand Up @@ -93,7 +93,7 @@ export const Settings = ({
instanceModel.shouldDisplayOffers(instanceInfo) ||
hasAnOffer(instanceInfo)

const hasSubscription = flag('settings.subscriptions')
const hasSubscription = flag('settings.subscription')

if (hasSubscription && client) {
const webLink = generateWebLink({
Expand Down

0 comments on commit 90363db

Please sign in to comment.