Skip to content

Commit

Permalink
frontend: Fix subscription status check
Browse files Browse the repository at this point in the history
  • Loading branch information
pschlan committed Aug 15, 2024
1 parent 06b5a9f commit 6fcdf1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/AppToolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function AppToolbar() {
<LogoutIcon />
</IconButton>
</> : <>
{userProfile && userProfile.userSubscription && (userProfile.userSubscription.status in [SubscriptionStatus.ACTIVE, SubscriptionStatus.EXPIRING] || userProfile.userSubscription.isOnGracePeriod === true) && <Tooltip title={t('common.sustainingMemberThanks')}>
{userProfile && userProfile.userSubscription && (userProfile.userSubscription.status===SubscriptionStatus.ACTIVE || userProfile.userSubscription.status===SubscriptionStatus.EXPIRING || userProfile.userSubscription.isOnGracePeriod === true) && <Tooltip title={t('common.sustainingMemberThanks')}>
<IconButton
color='inherit'
onClick={() => history.push('/settings')}
Expand Down

0 comments on commit 6fcdf1d

Please sign in to comment.