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
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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user