From 6fcdf1d7aa7c172e0b5824278c4eb9ee35ba5009 Mon Sep 17 00:00:00 2001 From: Patrick Schlangen Date: Thu, 15 Aug 2024 13:08:54 +0200 Subject: [PATCH] frontend: Fix subscription status check --- frontend/src/components/AppToolbar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/AppToolbar.jsx b/frontend/src/components/AppToolbar.jsx index ba604ca0..3e49e899 100644 --- a/frontend/src/components/AppToolbar.jsx +++ b/frontend/src/components/AppToolbar.jsx @@ -44,7 +44,7 @@ export default function AppToolbar() { : <> - {userProfile && userProfile.userSubscription && (userProfile.userSubscription.status in [SubscriptionStatus.ACTIVE, SubscriptionStatus.EXPIRING] || userProfile.userSubscription.isOnGracePeriod === true) && + {userProfile && userProfile.userSubscription && (userProfile.userSubscription.status===SubscriptionStatus.ACTIVE || userProfile.userSubscription.status===SubscriptionStatus.EXPIRING || userProfile.userSubscription.isOnGracePeriod === true) && history.push('/settings')}