about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--app/models/privacy_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/privacy_policy.rb b/app/models/privacy_policy.rb
index b93b6cf35..36cbf1882 100644
--- a/app/models/privacy_policy.rb
+++ b/app/models/privacy_policy.rb
@@ -68,7 +68,7 @@ class PrivacyPolicy < ActiveModelSerializers::Model
   def self.current
     custom = Setting.find_by(var: 'site_terms')
 
-    if custom
+    if custom&.value.present?
       new(text: custom.value, updated_at: custom.updated_at)
     else
       new(text: DEFAULT_PRIVACY_POLICY, updated_at: DEFAULT_UPDATED_AT)