Skip to content

Commit

Permalink
fix(polar): Cannot read properties of undefined (reading 'price') (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored and StarHeartHunt committed May 13, 2024
1 parent a2fac16 commit 8765f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/polar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export async function fetchPolarSponsors(token: string, organization?: string):
privacyLevel: 'PUBLIC',
createdAt: new Date(sub.created_at).toISOString(),
tierName: isActive ? sub.subscription_tier.name : undefined,
monthlyDollars: isActive ? sub.subscription.price.price_amount / 100 : -1,
monthlyDollars: isActive ? sub.price.price_amount / 100 : -1,
}
})
}

0 comments on commit 8765f0c

Please sign in to comment.