diff --git a/app/views/epp/domains/info.xml.builder b/app/views/epp/domains/info.xml.builder index 17892a3cc..f89fcd168 100644 --- a/app/views/epp/domains/info.xml.builder +++ b/app/views/epp/domains/info.xml.builder @@ -62,7 +62,7 @@ xml.epp_head do if @domain.dnskeys.any? ds_data = Setting.ds_data_allowed ? @domain.dnskeys.find_all { |key| key.ds_digest.present? } : [] - key_data = Setting.key_data_allowed ? @domain.dnskeys.find_all { |key| key.ds_digest.blank? } : [] + key_data = Setting.key_data_allowed ? @domain.dnskeys.find_all { |key| key.public_key.present? } : [] # is there any reason to include without xml.extension do