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

Commit f04af6a

Browse files
authored
pierremtb/adhoc/subscriptions-name-undefined (#241)
1 parent b6e925d commit f04af6a

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
@@ -26,7 +26,7 @@ const toTierFrom = (args: TierBasedOn): Tier => {
2626
return Tier.Organization
2727
} else if (typeof args.subscriptionsOrError !== 'number' && !isErr(args.subscriptionsOrError)) {
2828
const subscriptions: Models['ZooProductSubscriptions_type'] = args.subscriptionsOrError
29-
if (subscriptions.modeling_app.name === 'pro') {
29+
if (subscriptions?.modeling_app?.name === 'pro') {
3030
return Tier.Pro
3131
} else {
3232
return Tier.Free

0 commit comments

Comments
 (0)