0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 09:20:29 +01:00

fix more linting errors

Dieser Commit ist enthalten in:
merefield 2021-10-27 14:52:22 +01:00
Ursprung 31b4663b3f
Commit 60388b7dab

Datei anzeigen

@ -264,20 +264,20 @@ export function requiringAdditionalSubscription(
export function subscriptionLevel(type, category, subCategory) {
switch (category) {
case "actions":
if (subscription_levels.["business"].actions.includes(type)) {
if (subscription_levels["business"].actions.includes(type)) {
return "business"
} else {
if (subscription_levels.["standard"].actions.includes(type)) {
if (subscription_levels["standard"].actions.includes(type)) {
return "standard"
} else {
return ""
}
}
case "custom_fields":
if (subscription_levels.["business"].custom_fields[subCategory].includes(type)) {
if (subscription_levels["business"].custom_fields[subCategory].includes(type)) {
return "business"
} else {
if (subscription_levels.["standard"].custom_fields[subCategory].includes(type)) {
if (subscription_levels["standard"].custom_fields[subCategory].includes(type)) {
return "standard"
} else {
return ""