Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit f81bcd9

Browse files
authored
Update billing.ts (#242)
1 parent f04af6a commit f81bcd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/billing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export async function getBillingInfo(token: string) {
120120
case Tier.Free:
121121
// TS too dumb Tier.Free has the same logic
122122
if (typeof subscriptionsOrError !== 'number' && !isErr(subscriptionsOrError)) {
123-
allowance = Number(subscriptionsOrError.modeling_app.monthly_pay_as_you_go_api_credits)
123+
allowance = Number(subscriptionsOrError?.modeling_app?.monthly_pay_as_you_go_api_credits)
124124
}
125125
break
126126
case Tier.Unknown:

0 commit comments

Comments
 (0)