Skip to content

Commit

Permalink
chore: ts-expect-error polyfill on recurringInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
xn1cklas committed Sep 7, 2024
1 parent 131b9a9 commit 9e8bb85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ function mapProductsToPricingData(products: ProductOutput[]): PricingData[] {
.filter((product) => product.name !== "Free") // this is a polyfill to ignore the free plan, until you can remove it from products
.map((product) => {
const monthlyPrice = product.prices.find(
//@ts-expect-error there seems to be a type issue for recurringInterval
(p) => p.recurringInterval === "month"
) as ProductPriceOutput;
const annualPrice = product.prices.find(
//@ts-expect-error there seems to be a type issue for recurringInterval
(p) => p.recurringInterval === "year"
) as ProductPriceOutput;
return {
Expand Down

0 comments on commit 9e8bb85

Please sign in to comment.