diff --git a/js/src/forum/components/addManagePoliciesOption.js b/js/src/forum/components/addManagePoliciesOption.js index ed3b221..1c9500d 100644 --- a/js/src/forum/components/addManagePoliciesOption.js +++ b/js/src/forum/components/addManagePoliciesOption.js @@ -17,6 +17,9 @@ async function updatePolicy(policy, value) { export default function () { extend(SettingsPage.prototype, 'settingsItems', function (items) { const policies = app.store.all('fof-terms-policies').filter((policy) => policy.optional()); + if (!policies.length) { + return; + } let policyState = app.session.user.fofTermsPoliciesState();