File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff 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 = { {
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments