fix: fix bug in Pricing (#2255)

This commit is contained in:
haiwu 2023-08-25 19:27:46 +08:00 committed by GitHub
parent 739a9bcd0d
commit 9da2f0775f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -283,6 +283,9 @@ func CreateProductForPlan(plan *Plan) *Product {
Providers: plan.PaymentProviders,
State: "Published",
}
if product.Providers == nil {
product.Providers = []string{}
}
return product
}

View File

@ -36,6 +36,7 @@ class PlanListPage extends BaseListPage {
pricePerYear: 100,
currency: "USD",
isEnabled: true,
paymentProviders: [],
role: "",
options: [],
};