mirror of
https://github.com/LukeHagar/polar.git
synced 2025-12-06 04:20:58 +00:00
fixes
This commit is contained in:
@@ -245,6 +245,7 @@ export default function TodoList() {
|
||||
</div>
|
||||
</div>
|
||||
{user?.subscription?.productId !== premiumMonthly.id &&
|
||||
user?.subscription?.productId !== premiumYearly?.id &&
|
||||
(user?.isFree ? (
|
||||
<CheckoutLink
|
||||
polarApi={{
|
||||
@@ -301,6 +302,8 @@ export default function TodoList() {
|
||||
</div>
|
||||
{user?.subscription?.productId !==
|
||||
premiumPlusMonthly.id &&
|
||||
user?.subscription?.productId !==
|
||||
premiumPlusYearly?.id &&
|
||||
(user?.isFree ? (
|
||||
<CheckoutLink
|
||||
polarApi={{
|
||||
|
||||
@@ -269,13 +269,7 @@ export class Polar<
|
||||
}),
|
||||
generateCheckoutLink: actionGeneric({
|
||||
args: {
|
||||
productIds: v.array(
|
||||
v.union(
|
||||
...Object.keys(this.products).map((productKey) =>
|
||||
v.literal(productKey)
|
||||
)
|
||||
)
|
||||
),
|
||||
productIds: v.array(v.string()),
|
||||
origin: v.string(),
|
||||
successUrl: v.string(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user