Skip to content

Commit 5ab6837

Browse files
committed
fixes
1 parent 018915f commit 5ab6837

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

example/src/App.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ export default function TodoList() {
245245
</div>
246246
</div>
247247
{user?.subscription?.productId !== premiumMonthly.id &&
248+
user?.subscription?.productId !== premiumYearly?.id &&
248249
(user?.isFree ? (
249250
<CheckoutLink
250251
polarApi={{
@@ -301,6 +302,8 @@ export default function TodoList() {
301302
</div>
302303
{user?.subscription?.productId !==
303304
premiumPlusMonthly.id &&
305+
user?.subscription?.productId !==
306+
premiumPlusYearly?.id &&
304307
(user?.isFree ? (
305308
<CheckoutLink
306309
polarApi={{

src/client/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,7 @@ export class Polar<
269269
}),
270270
generateCheckoutLink: actionGeneric({
271271
args: {
272-
productIds: v.array(
273-
v.union(
274-
...Object.keys(this.products).map((productKey) =>
275-
v.literal(productKey)
276-
)
277-
)
278-
),
272+
productIds: v.array(v.string()),
279273
origin: v.string(),
280274
successUrl: v.string(),
281275
},

0 commit comments

Comments
 (0)