diff --git a/src/client.ts b/src/client.ts index dd530d9..ed6dd8c 100644 --- a/src/client.ts +++ b/src/client.ts @@ -503,7 +503,7 @@ export class Tier { */ async lookupLimit(org: OrgName, feature: FeatureName): Promise { const limits = await this.tryGet('/v1/limits', { org }) - for (const usage of limits.usage) { + for (const usage of limits?.usage ?? []) { if ( usage.feature === feature || usage.feature.startsWith(`${feature}@plan:`)