From c407396b85bea4904aab60c7bdb39e511f917159 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 18 Jan 2026 19:50:38 -0600 Subject: [PATCH] fix: correct subscription description when data unavailable (refs #55) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed conditional logic for subscription description text to properly handle the case when subscription data is not loaded or unavailable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/pages/SettingsPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/SettingsPage.tsx b/frontend/src/pages/SettingsPage.tsx index 8359d3b..5c22daf 100644 --- a/frontend/src/pages/SettingsPage.tsx +++ b/frontend/src/pages/SettingsPage.tsx @@ -435,9 +435,9 @@ export const SettingsPage: React.FC = () => { )} - {subscription?.tier === 'free' + {!subscription || subscription.tier === 'free' ? 'Upgrade to Pro or Enterprise for more features and vehicle slots.' - : subscription?.tier === 'pro' + : subscription.tier === 'pro' ? 'Pro plan with up to 5 vehicles and full features.' : 'Enterprise plan with unlimited vehicles and all features.'}