fix: correct subscription description when data unavailable (refs #55)
All checks were successful
Deploy to Staging / Build Images (pull_request) Successful in 2m50s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 29s
Deploy to Staging / Verify Staging (pull_request) Successful in 7s
Deploy to Staging / Notify Staging Ready (pull_request) Successful in 6s
Deploy to Staging / Notify Staging Failure (pull_request) Has been skipped

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 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-01-18 19:50:38 -06:00
parent 26f9306d6b
commit c407396b85

View File

@@ -435,9 +435,9 @@ export const SettingsPage: React.FC = () => {
)} )}
</Box> </Box>
<Typography variant="body2" color="text.secondary"> <Typography variant="body2" color="text.secondary">
{subscription?.tier === 'free' {!subscription || subscription.tier === 'free'
? 'Upgrade to Pro or Enterprise for more features and vehicle slots.' ? '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.' ? 'Pro plan with up to 5 vehicles and full features.'
: 'Enterprise plan with unlimited vehicles and all features.'} : 'Enterprise plan with unlimited vehicles and all features.'}
</Typography> </Typography>