Spaces:
Sleeping
Sleeping
axeronis commited on
Commit ·
adebe48
1
Parent(s): 887a0cb
fix: billing page TypeError - add optional chaining
Browse files
frontend/app/settings/billing/page.tsx
CHANGED
|
@@ -144,7 +144,7 @@ export default function BillingPage() {
|
|
| 144 |
)
|
| 145 |
}
|
| 146 |
|
| 147 |
-
const currentPlanId = data?.plan.id.toLowerCase() || 'trial'
|
| 148 |
const isTrial = currentPlanId === 'trial'
|
| 149 |
|
| 150 |
return (
|
|
|
|
| 144 |
)
|
| 145 |
}
|
| 146 |
|
| 147 |
+
const currentPlanId = data?.plan?.id?.toLowerCase() || 'trial'
|
| 148 |
const isTrial = currentPlanId === 'trial'
|
| 149 |
|
| 150 |
return (
|