feat(subscription): load vip and credit plans from api
This commit is contained in:
@@ -25,7 +25,12 @@ function toErrorMessage(error: unknown): string {
|
||||
}
|
||||
|
||||
function defaultAutoRenewForPlan(planId: string): boolean {
|
||||
return !planId.includes("lifetime") && !planId.startsWith("dol_");
|
||||
return (
|
||||
!planId.includes("lifetime") &&
|
||||
!planId.startsWith("dol_") &&
|
||||
!planId.startsWith("points_") &&
|
||||
!planId.startsWith("credit_")
|
||||
);
|
||||
}
|
||||
|
||||
function getDefaultPlanId(plans: readonly PaymentPlan[]): string {
|
||||
|
||||
Reference in New Issue
Block a user